OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dieter122 on 27 Oct 2002, 18:44:13

Title: Mission Ending Trigger- fairly simple?
Post by: Dieter122 on 27 Oct 2002, 18:44:13
What I wish to do is have 2 areas that have the activation of the lack of East forces in the area....once both are done (all enemies destroyed), a 3rd trigger would go off saying mission complete, yada yada, with music and all......i tried having 2 different triggers with the names "tri1" and "tri2" then the 3rd trigger be activated by "tri1";"tri2" but it didnt work.....does anyone know?  
Title: Re:Mission Ending Trigger- fairly simple?
Post by: seanver on 27 Oct 2002, 20:43:23
Put in the On Activation field of one of the triggers "tri1=true" And in the other: "tri2=true"

Now in the condition field of the third put "tri1 AND tri2"
Title: Re:Mission Ending Trigger- fairly simple?
Post by: Dieter122 on 28 Oct 2002, 00:54:17
i get the msg "error in type and object, bool=  yada yada yada...when i go to preview the mission...whys it doing that ? =-/
Title: Re:Mission Ending Trigger- fairly simple?
Post by: Dieter122 on 28 Oct 2002, 23:36:59
someone PLEASEEEEE help me, i need this to finish my mission  :(
Title: Re:Mission Ending Trigger- fairly simple?
Post by: knepo on 29 Oct 2002, 00:15:34
first: make a gamelogic unit.
Then make a waypiont for gamelogic, make sure its a and waypoint. syncronize the triggers u got with this waypoint. make a 2. waypoint place it a bit from the 1., make a trigger that  u group with the gamelogic. and set the trigger on present and then mission complete.

Sorry for bad english :)
Title: Re:Mission Ending Trigger- fairly simple?
Post by: Dieter122 on 29 Oct 2002, 02:33:10
you just totally confused me past where i was before, sorry, but thanks for the reply  :-\
Title: Re:Mission Ending Trigger- fairly simple?
Post by: knepo on 29 Oct 2002, 17:10:50
the two triggers u got, u sync them with a gamelogic. when those triggers are activated. gamelogic moves to his nextwaypoint, and there u got a new trigger when gamelogic present mission end. :-\
Title: Re:Mission Ending Trigger- fairly simple?
Post by: knepo on 29 Oct 2002, 17:34:26
Here u got a sample mission :)
Title: Re:Mission Ending Trigger- fairly simple?
Post by: mcnorth on 30 Oct 2002, 12:30:41
SeAnVer gave you a really good simple answere. Here it is in the form of a sample mission. First do radio alpha to fire the first trigger, then do radio bravo to fire the second trigger and 5 seconds later the third trigger will fire.
Title: Re:Mission Ending Trigger- fairly simple?
Post by: Soul Catcher on 31 Oct 2002, 01:38:29
just put "v1=true" in the On-Activation field of the first trigger and put "v2=true" in the same field on the other trigger (no speech marks).

the third trigger should be an end trigger (End#1 for example)  and put this in its condition field put "v1 and v2" (again no speech marks). That definately works (i use stuff like that all the time in my missions, just more complicated).