Scripts

TR_m7_AM_skylamp_sc

TR_Mainland.esm
Variables 4
Local Variables
attackstate
OnPCHitMe
control
timer
Source
1Begin TR_m7_AM_skylamp_sc 2 3float timer 4short attackstate 5short OnPCHitMe 6short control 7 8if ( OnDeath ) 9 ModPCCrimeLevel 400 10 return 11endif 12 13if ( OnPCHitMe ) 14 if ( control == 0 ) 15 set control to 1 16 ModPCCrimeLevel 40 17 endif 18 set attackstate to 1 19 set OnPCHitMe to 0 20endif 21 22if ( control == 1 ) 23 if ( GetPCCrimeLevel == 0 ) 24 set control to 0 25 endif 26endif 27 28if ( attackstate == 1 ) 29 StartCombat player 30 set timer to ( timer + GetSecondsPassed ) 31 if ( timer >= 1 ) 32 set timer to 0 33 if ( GetDeadCount "TR_m7_Relenu Drolan" == 0 ) 34 "TR_m7_Relenu Drolan"->StartCombat Player 35 endif 36 set attackstate to 0 37 endif 38endif 39 40End