OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: HedgeHog on 04 Sep 2008, 21:51:33

Title: How do I make a mission end by script?
Post by: HedgeHog 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 :)

Title: Re: How do I make a mission end by script?
Post by: nuxil 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
Title: Re: How do I make a mission end by script?
Post by: Lukito 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?