OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFP Guy on 20 Mar 2003, 04:11:07

Title: Making a script end a mission
Post by: OFP Guy on 20 Mar 2003, 04:11:07
How do you make a script end a mission? Do you use triggers? Could someone please tell me how to?

All answers are appreciated!
Title: Re:Making a script end a mission
Post by: mcnorth on 20 Mar 2003, 05:15:22
Couldn't you set a variable to true in your script and have a trigger with the condition being the variable and the rest of the ending as usual in the trigger?
Title: Re:Making a script end a mission
Post by: macguba on 20 Mar 2003, 09:18:17
mcnorth is absolutely spot on.    Here's an example of what he means.

script:-

blah blah blah
endmission=true


trigger:-

type:  End#1
condition:  endmission