OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 2nd Ranger on 28 Jan 2005, 19:51:45

Title: All live members of a group are in a trigger
Post by: 2nd Ranger on 28 Jan 2005, 19:51:45
Hello

I'm trying to get a mission to end when all the living members of the player group are inside the trigger (extract) zone. I was trying to modify this to help me

{(alive _X)&&(_x in thislist)} count ((units group delta)  == {alive _x} count ((units group delta)

but It needs to be like the following;

Activation: WEST present

Condition: This && (the number of members of group Delta) within 20 metres of extract zone is equal to (the number of living members of group Delta)

End#1

I'm slowly learning the coding stuff, and any help with that would be great.
Title: Re:All live members of a group are in a trigger
Post by: macguba on 28 Jan 2005, 20:01:26
Group the trigger to the group leader.    You now have new options in the Activation box.   You don't need any code.

If you wanted code, it would be something like:-

Activation:   West present
Condition:   "alive _x" count units grp1 == "_x in thislist" count units grp1

Syntax not guaranteed.  
Title: Re:All live members of a group are in a trigger
Post by: 2nd Ranger on 28 Jan 2005, 20:24:05
Whoops, didn't know that.

Thanks alot. :)
Title: Re:All live members of a group are in a trigger
Post by: Rocko Bonaparte on 29 Jan 2005, 07:20:37
Does this work in multiplayer?  I was using the group activation trigger in multiplayer to end a mission, but it didn't end when the remaining members of the group were within boundaries.

Edit: N/M playtested with outdated version of the mission whoops.