TR_m7_Hunza_herds_sc
TR_Mainland.esm
Variables
3
Local Variables
attackstate
OnPCHitMe
timer
Source
1Begin TR_m7_Hunza_herds_sc
2
3;NPCs will defend sharai hoppers in Hunza Camp
4
5float timer
6short attackstate
7short OnPCHitMe
8
9if ( OnPCHitMe == 1 )
10 set attackstate to 1
11 set OnPCHitMe to 0
12endif
13
14if ( attackstate == 1 )
15 StartCombat player
16 set timer to ( timer + GetSecondsPassed )
17 if ( timer >= 1 )
18 set timer to 0
19 if ( GetDeadCount "TR_m7_Yannat Assubibi" == 0 )
20 "TR_m7_Yannat Assubibi"->StartCombat Player
21 endif
22 if ( GetDeadCount "TR_m7_Matu-Zana" == 0 )
23 "TR_m7_Matu-Zana"->StartCombat Player
24 endif
25 if ( GetDeadCount "TR_m7_Gan-Suul" == 0 )
26 "TR_m7_Gan-Suul"->StartCombat Player
27 endif
28 set attackstate to 0
29 endif
30endif
31
32End