OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Insanoblan on 07 May 2004, 23:02:40

Title: Objectives, triggers, and endings
Post by: Insanoblan on 07 May 2004, 23:02:40
Hey all. I have 3 triggers named obj1 obj2 and obj3. How can I make it so that the condition for the fourth trigger (hereafter refered to as end1) has the condition that Obj1, Obj2, and Obj3 all have been activated?

Thanks!

Insanoblan
Title: Re:Objectives, triggers, and endings
Post by: CrashnBurn on 08 May 2004, 08:53:56
Are the triggers "named" or are those the conditions ?
If they're conditions, then your end trigger would be-

obj1 && obj2 && obj3
Title: Re:Objectives, triggers, and endings
Post by: Insanoblan on 12 May 2004, 00:16:17
those are the trigger names
Title: Re:Objectives, triggers, and endings
Post by: Loup-Garou on 12 May 2004, 10:00:11
Condition : Obj1 and Obj2 and Obj3 (or Obj1 = true and Obj2 = true and Obj3 = true). I'm not sure. Sorry  :-\.

NOTE : the game seems to ignore "name" in triggers, and to "use" "text".
Title: Re:Objectives, triggers, and endings
Post by: h- on 12 May 2004, 11:01:04
The engine does not ignore triggers name.
It's exactly the same as naming an unit of some sort.

If you name a trigger you can also deleteVehicle it if you wish...

The text part is just for the editor to keep track of which trigger does what...


BUT in this particular case you do not need the triggers to be named (actually it's quite rare to need them to be named).

What you need to do is to have the three triggers to be activated by something and have in the 'on Activation' field obj1 = true and so on, then use the end trigger as described in the above posts by having in it's 'condition' field the obj1 && obj2 && obj3...

No guarantees as usual...  :P
Title: Re:Objectives, triggers, and endings
Post by: Insanoblan on 16 May 2004, 19:40:54
Alright awesome! That worked well man, thanks for the help

PROBLEM s-s-s-s-s-SOLVED  :toocool: