TR_m3_q_Kha_ThulS_script
TR_Mainland.esm
Variables
1
Local Variables
timer
Source
1Begin TR_m3_q_Kha_ThulS_script
2
3;summoned duplicate of creature TR_m3_Kha_Daedroth_Thul
4
5float timer
6
7if ( CellChanged )
8 Disable
9endif
10
11if ( OnDeath )
12 Disable
13endif
14
15if ( GetDisabled )
16 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
17 SetDelete 1
18 return
19endif
20
21if ( MenuMode )
22 Return
23endif
24
25; timer is used as a control variable as well as an actual timer
26if ( timer == 0 )
27 set timer to ( GetAngle Z )
28 set timer to ( timer + 180 )
29 SetAngle Z timer
30 set timer to -1
31 ForceGreeting
32elseif ( timer > 3 )
33 if ( timer > 6.7 )
34 Disable
35 return
36 endif
37 set timer to ( timer + GetSecondsPassed )
38elseif ( timer >= 1 )
39 PlayGroup idle2 1
40 set timer to 4
41endif
42
43End