Guest User

Proposed Changes.

a guest
Apr 6th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.02 KB | None | 0 0
  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.     if (GetObjectiveDisplayed VMS08 30 && GetObjectiveCompleted VMS08 30 == 0 && bDoneOnce == 1)
  17.     Set bDoneOnce to 0;fixes resetquest not resetting the trigger.
  18.  
  19.     if (VMS08.bCurtisInTower && bDoneOnce == 0)
  20.         SetObjectiveCompleted VMS08 30 1;
  21.         if (VMS08.bCurtisAmbush == 0)
  22.             CaptainCurtisREF.SayTo player VMS08CurtisRadio1 0 1;
  23.             Set bDoneOnce to 1;
  24.         endif
  25.  
  26.         ;disable the monorail guards, whom curtis has conveniently reassigned tonight.
  27.         VMcCarranNCRTrooperMonorail1REF.Disable
  28.         VMcCarranNCRTrooperMonorail2REF.Disable
  29.         VMcCarranNCRTrooperMonorail3REF.Disable
  30.         VMcCarranNCRTrooperMonorail4REF.Disable
  31.  
  32.         Autosave;
  33.     endif
  34. END
  35.  
  36. BEGIN OnTriggerLeave Player
  37.     set VMS08.bPlayerInTower to 0;
  38. END
Advertisement
Add Comment
Please, Sign In to add comment