TR_m7_ganettukwcave_herds_sc
TR_Mainland.esm
Variables
3
Local Variables
attackstate
OnPCHitMe
timer
Source
1Begin TR_m7_ganettukwcave_herds_sc
2
3float timer
4short attackstate
5short OnPCHitMe
6
7; this script causes local shinathi to attack if kwooms are attacked
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_AnatEzharHaddi" == 0 )
20 "TR_m7_AnatEzharHaddi"->StartCombat Player
21 endif
22 if ( GetDeadCount "TR_m7_Murzh" == 0 )
23 "TR_m7_Murzh"->StartCombat Player
24 endif
25 set attackstate to 0
26 endif
27endif
28
29End