Scripts

caenScript

Bloodmoon.esm
Variables 6
Local Variables
doOnce
posx
posy
posz
poszrot
timer
Source
1Begin caenScript 2 3float posx 4float posy 5float posz 6float poszrot 7float timer 8short doOnce 9 10if ( OnDeath == 1 ) 11 set caenlornDead to ( caenlornDead + 1 ) 12endif 13 14set posy to ( GetPos y ) 15set posx to ( GetPos x ) 16set posz to ( GetPos z ) 17set poszrot to ( GetAngle z ) 18 19 20if ( GetDeadCount "rigmor halfhand" == 1 ) 21 if ( doOnce == 0 ) 22 set timer to ( timer + GetSecondsPassed ) 23 if ( timer > 3 ) 24 AiWander 0 0 0 0 0 0 25 PlaceItem "bm_wereeffect2" posx posy posz poszrot 26 set doOnce to 1 27 set timer to 0 28 endif 29 endif 30endif 31 32if ( doOnce == 1 ) 33 set timer to ( timer + GetSecondsPassed ) 34 if ( timer > 1.2 ) 35 Disable 36 endif 37endif 38 39 40 41End caenScript