OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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.
-
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.
-
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.