OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone on 24 Jun 2004, 19:24:03

Title: ForceEnd!!!
Post by: Killzone on 24 Jun 2004, 19:24:03
Is it possible to detect a scud launch and then end the mission.

I am using the lauchScud script from the EDdepot which works great but I want the mission to end if the scuds are launched is this possible?

I tried "ForceEnd" at the end of the script but no luck.


Thanks for the help ;D
Title: Re:ForceEnd!!!
Post by: Jezuro on 24 Jun 2004, 19:30:54
ForceEnd doesn't actually terminate the mission, it only ignores the effects of triggers, waypoints etc. and forces the mission to end only if you have a trigger with End#ID on the map.
Title: Re:ForceEnd!!!
Post by: CrashnBurn on 24 Jun 2004, 23:26:54
Put your end trigger with the condition-  

launched

Open the scud script you're using, and just after the second scud action insert a line-

launched=true

when the script reaches this part, the trigger will activate.
Title: Re:ForceEnd!!!
Post by: macguba on 24 Jun 2004, 23:56:19
ForceEnd is for emergencies only - it should not really be used as a substitute for a trigger.  

Go with CrashnBurn's suggestion, or use the command scudState.