Home   Help Search Login Register  

Author Topic: Activating a trigger ONLY when all members of my group enter a vehicle  (Read 462 times)

0 Members and 1 Guest are viewing this topic.

Mephistopheles

  • Guest
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

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
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.


Plenty of reviewed ArmA missions for you to play

Offline Jezuro

  • Members
  • *
  • Hookah 4 lyfe!
    • Jezuro's ArmA Workshop
Or:

{(vehicle _x) != MyVehicle} count (units group player) == 0

It's the same in light blue color ;D
« Last Edit: 28 Jun 2004, 20:43:43 by Jezuro »
"We are Her salvation, and through Her command we shall live forever. I will not die. Not here. Not now. Never!!!"