TR_m4_NPC_teynsmuggler
TR_Mainland.esm
Variables
1
Local Variables
doOnce
Source
1Begin TR_m4_NPC_teynsmuggler
2
3; Script on NPC TR_m4_d_smugglerteyn (a corpse in the Teyn Lighthouse Basement).
4
5short doOnce
6
7if ( OnActivate )
8 if ( doOnce == 0 )
9 set doOnce to 2
10 endif
11 Activate
12endif
13
14if ( doOnce == 0 )
15 if ( GetDistance player <= 50 )
16 set doOnce to 2
17 endif
18endif
19
20if ( doOnce != 2 )
21 Return
22endif
23
24if ( GetDeadCount "TR_m4_erethys omavel" == 0 )
25 "TR_m4_erethys omavel"->PositionCell 4004 4124 15714 9200 "Teyn, Lighthouse: Basement"
26 "TR_m4_erethys omavel"->AiWander 0 0 0 0 0 0 0 0
27 "TR_m4_erethys omavel"->SetHello 0
28 PlaySoundVP "Door Creaky Close" 0.9, 0.66
29 Journal "TR_m4_T_Lighthouse" 10
30endif
31set doOnce to 1
32
33end