OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ilkka on 07 Jan 2003, 15:47:25

Title: Ending mission with script?
Post by: Ilkka on 07 Jan 2003, 15:47:25
How can i end mission with script?
Title: Re:Ending mission with script?
Post by: Wolfrug on 07 Jan 2003, 17:08:30
well, the absolutely easiest is by making a normal End trigger, and just put something like scriptEnded in the condition field, after which you would at the end of your script put "scriptEnded=true" (without the quotes). That way the end trigger won't activate before the script is completed...

although there is a command, forceEnd which supposedly ends the mission too...last time I checked it didn't work tho, but you can try it out anyway :D

g'luck!

Wolfrug out.
Title: Re:Ending mission with script?
Post by: dmakatra on 07 Jan 2003, 19:54:24
Why do you want to do that?
Title: Re:Ending mission with script?
Post by: Ilkka on 08 Jan 2003, 07:15:35
Well, i have full scripted intro and outros.  ForceEnd command doesn`t work.