OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mephistopheles on 27 Jun 2004, 15:02:46
-
Hi all!
What I want to do is have a trigger that is activated ONLY when ALL members of my group enter a particular vehicle. I know this will require a little scripting, but I am a complete newbie to this sort of thing! I know what I want the trigger to do etc, but it's just getting it to go off at the right time that is the problem!
Regards,
Mephistopheles
-
Oooh well, there's about 97 ways of doing this.
If its an AI group with a getin waypoint, you could write
grp1loaded=true
in the On activation field of the waypoint. When the group are all in the variable grp1loaded will be set to true and then your trigger, which has this in the condition field,
Condition: grp1loaded
will fire. If it's a player led group, then you might have a trigger like this
Condition: count units grp1 == "_x in lorry1" count units grp1
Syntax not guaranteed.
-
Or:
{(vehicle _x) != MyVehicle} count (units group player) == 0
It's the same in light blue color ;D