OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Lucky Ed on 22 Mar 2004, 19:11:39

Title: group trigger for empty vehicels?
Post by: Lucky Ed on 22 Mar 2004, 19:11:39
I'm makeing a mission where one of the objectives is to destroy a vehicle depot.
I've got at trigger with "1" objStatus "done" that is activated when a empty vehicle is destroyed

But I need the trigger to activate when All the empty vehicles are destroyed.

The problem: empty vehicles can't be grouped, so I can't use a "whole group" trigger. What to do?
Title: Re:group trigger for empty vehicels?
Post by: j-man on 22 Mar 2004, 19:20:54
In the ON ACTIVATION fiel of the trigger put

Code: [Select]
(!alive unit1) && (!alive unit2) && (!alive unit3) etc...
Just remember to replace the names unit1, unit2, and unit3 in my example with the name of the vehicles you want destroyed
Title: Re:group trigger for empty vehicels?
Post by: Lucky Ed on 22 Mar 2004, 20:43:34
Shouldn't it be in the "condition" field?
If it should activate the trigger it wouldn't work in the activation field... would it?
Title: Re:group trigger for empty vehicels?
Post by: macguba on 23 Mar 2004, 01:12:40
Yes, he meant the condition field.
Title: Re:group trigger for empty vehicels?
Post by: j-man on 23 Mar 2004, 03:27:51
Yea, I ment condition field. My mistake :P
Title: Re:group trigger for empty vehicels?
Post by: Lucky Ed on 23 Mar 2004, 08:21:27
Thanks mate! It worked perfectly  ;D