Home   Help Search Login Register  

Author Topic: How do I make a mission end by script?  (Read 955 times)

0 Members and 1 Guest are viewing this topic.

Offline HedgeHog

  • Members
  • *
How do I make a mission end by script?
« on: 04 Sep 2008, 21:51:33 »
Hi there! :D

Sorry for any spelling mistake as I'm Italian... :)


I wanna make a mission end by script but I dunno the right syntax...

Is it possible to make the script start the alternate ending (For example End 2)?

Please help me cuz I really don't know how to make it work!!

Thanks in advance! :D :)


Offline nuxil

  • Members
  • *
Re: How do I make a mission end by script?
« Reply #1 on: 11 Sep 2008, 04:08:38 »
You can create a trigger and end it that way..

Example.
WestTriggerOne = createTrigger ["EmptyDetector", SomePosition];
WestTriggerOne setTriggerActivation ["WEST", "PRESENT", true];
WestTriggerOne setTriggerStatements ["this", "On_Act_Statement", "On_Deact_Statement"];
WestTriggerOne setTriggerType "END2";


more about triggers look at the Bis Wiki

Offline Lukito

  • Members
  • *
Re: How do I make a mission end by script?
« Reply #2 on: 25 Sep 2008, 16:03:51 »
create a trigger, just set the side, which your playing, on activation... and make the type end#1..5... the mission will be ended when you get into triggers area... but how to create trigger with end which activates only if you're completed all waypoints?