OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SandVoss on 12 Nov 2005, 11:38:33

Title: Objectives complete mission ends?
Post by: SandVoss on 12 Nov 2005, 11:38:33
Odd as it may seem, I am unable to find a past topic, a tutorial, or a friend who knows how a mission can be ended by simply having all the objectives completed. Basically, in my mission, there are 3 seperate objectives to be completed. Once those objectives are completed, I want the mission to end, with a if possible, 8 second delay.

Anyone know how this is to be done?

Thanks in advance,

SandVoss.
Title: Re:Objectives complete mission ends?
Post by: rado1265 on 12 Nov 2005, 11:47:45
Mission(s) end(s) with a trigger, with apropriate condition(s) in it of course.

Look in Type window of a triger, there you'll find End(s).
Title: Re:Objectives complete mission ends?
Post by: SandVoss on 12 Nov 2005, 12:19:42
Thats not really what I meant.  :P

 I would like to know how to make a mission end, once 3 different triggers that set 3 different objectives to end have been triggered.

Title: Re:Objectives complete mission ends?
Post by: rado1265 on 12 Nov 2005, 12:37:23
As I said; when conditions in End trigger's Init will be met.

In first objective trigger add a condition in On Activation field, lets say con1 = true, then in next objective trigger put con2 = true, and so on ...  Then in End trigger in Condition field put those conditions (con1 and con2 and ...)

I hope that's what you're looking for.

Title: Re:Objectives complete mission ends?
Post by: Trapper on 12 Nov 2005, 12:40:21
Let every trigger set a variable:
obj1done=true
obj2done=true
obj3done=true


in the condition of the end trigger write:
obj1done && obj2done && obj3done
Title: Re:Objectives complete mission ends?
Post by: macguba on 12 Nov 2005, 13:03:38
Altneratively, set all 3 triggers to type End#1.   The mission will end only when ALL of the triggers have been fired.

(If you set multiple triggers to type Loose, the mission will end when ANY of them are are fired.)
Title: Re:Objectives complete mission ends?
Post by: rado1265 on 12 Nov 2005, 13:58:08
Didn't know that, macguba.  This is good stuff, makes some things much easiest.
Title: Re:Objectives complete mission ends?
Post by: 456820 on 12 Nov 2005, 21:28:59
Quote
Altneratively, set all 3 triggers to type End#1.  The mission will end only when ALL of the triggers have been fired.

(If you set multiple triggers to type Loose, the mission will end when ANY of them are are fired.)

tis in the ofp CWC walkthrough in the back it has an editing bit has many cool tips lke that i would suggest getting it if you havent already

just one thing about that is the end trigger #1 say its called trig1
when trig1's condition is active and should end the mission but since theres more triggers it doesnt end
but is the activation field activated ?

hope you understand that
Title: Re:Objectives complete mission ends?
Post by: macguba on 12 Nov 2005, 23:53:29
Yes, I think the "On activation" field of an ending type trigger would still be carried out even if the trigger was ending the mission.    However, depending on what instructions were in that field, they may or may not be completed before the mission ends.
Title: Re:Objectives complete mission ends?
Post by: SandVoss on 13 Nov 2005, 08:37:43
Thanks for all the advice, I figured it out.