Home   Help Search Login Register  

Author Topic: Need help ejecting my team...  (Read 723 times)

0 Members and 1 Guest are viewing this topic.

Phantom

  • Guest
Need help ejecting my team...
« on: 04 Dec 2002, 12:58:44 »
The idea is that everyone is supposed to get out at the same time, keeping the group together.
But all I'm able to do is get everyone to disembark, which, when using a Hercules, is too fast to keep everyone together!
I've checked the editing depot and i've found nothing suitable.
Can somebody PLEASE tell me how to eject all my guys in one go, without me having to do it, it needs to be automatic.
PLEASE help me!!!

Phantom

LAPD

  • Guest
Re:Need help ejecting my team...
« Reply #1 on: 04 Dec 2002, 13:47:16 »
Let's say you have two people in your group, one called ManI and second ManII.

Make a trigger, and in the on activation field put this:

ManI action ["Eject", vehicle ManI]; ManII action ["Eject", vehicle ManII]

If you want more men, you can call them ManIII, ManIV and so on ...

I hope this will do it  8)
LAPD  :)

Offline Skumball

  • Members
  • *
Re:Need help ejecting my team...
« Reply #2 on: 04 Dec 2002, 15:48:02 »
you could also use:

"_x action [""eject"",wHeli1]" forEach (units wGrp1)
"unassignVehicle _x" forEach (units wGrp1)

where wHeli1 is the chopper and wGrp1 is the group.
the eject word seems to need double quotes otherwise it thinks it is a command rather than a string, probably something to do with the whole line already in quotes for the forEach command.
the unassign line stops the units trying to get back in the vehicle.

Phantom

  • Guest
Re:Need help ejecting my team...
« Reply #3 on: 04 Dec 2002, 15:57:32 »
it works!
thanks a bunch mate