View difference between Paste ID: pSMJP1mq and W7Akn5jk
SHOW: | | - or go back to the newest paste.
1
ScriptName VMcCarranControlTowerTriggerSCRIPT
2
3
short bDoneOnce;
4
5
BEGIN OnTriggerEnter CaptainCurtisREF
6
	set VMS08.bCurtisInTower to 1;
7
END
8
9
BEGIN OnTriggerLeave CaptainCurtisREF
10
	set VMS08.bCurtisInTower to 0;
11
	Set VMS08.bDisableCurtisPatrol to 0;
12
END
13
14
BEGIN OnTriggerEnter Player
15
	set VMS08.bPlayerInTower to 1;
16
	
17-
	Set bDoneOnce to 0;fixes resetquest not resetting the trigger.
17+
18
		Set bDoneOnce to 0;
19
	endif;fixes resetquest not resetting the trigger.
20
21
	if (VMS08.bCurtisInTower && bDoneOnce == 0)
22
		SetObjectiveCompleted VMS08 30 1;
23
		if (VMS08.bCurtisAmbush == 0)
24
			CaptainCurtisREF.SayTo player VMS08CurtisRadio1 0 1;
25
			Set bDoneOnce to 1;
26
		endif
27
28
		;disable the monorail guards, whom curtis has conveniently reassigned tonight.
29
		VMcCarranNCRTrooperMonorail1REF.Disable
30
		VMcCarranNCRTrooperMonorail2REF.Disable
31
		VMcCarranNCRTrooperMonorail3REF.Disable
32
		VMcCarranNCRTrooperMonorail4REF.Disable
33
34
		Autosave;
35
	endif
36
END
37
38
BEGIN OnTriggerLeave Player
39
	set VMS08.bPlayerInTower to 0;
40
END