Home   Help Search Login Register  

Author Topic: problem with eject command  (Read 530 times)

0 Members and 1 Guest are viewing this topic.

ThEoNeAnDoNlY

  • Guest
problem with eject command
« on: 03 Jan 2005, 18:21:24 »

basically, a tank and a half track are driving down a road, with 2 different squads in cargo (the squads are NOT part of their 2 vehicle squad). when their behaviour is set to "combat" *this moveto getpos player* or soething similar is activated. now before they move up to me i want them to drop off their cargo. i have tried doing, "Schute action["eject"] ; stugm action ["eject"]" and "schute action["eject","sdkfz"] ; stugm action["eject","panther"]" but it keeps coming up with some kind of syntax error.

can someone please explain thebasics of the eject command, im supposed to be quite a good mission maker but i have never really had to use this command untill today.

Guy

ThEoNeAnDoNlY

  • Guest
Re:problem with eject command
« Reply #1 on: 03 Jan 2005, 18:34:20 »
ok i think my problem is them i trying to call a group to all do an action, is this possible?

guy

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:problem with eject command
« Reply #2 on: 03 Jan 2005, 18:38:40 »
the syntax for eject is:
unit action ["eject",vehicle]
so to do it for a group:
{_x action["eject",vehicle]} foreach units groupname

AK-Chester

  • Guest
Re:problem with eject command
« Reply #3 on: 03 Jan 2005, 18:46:40 »
In addition, it may be a good idea to unassign the units from the vehicle, or they might wanna - try to - get back in.

Single units:
Code: [Select]
unAssignVehicle unitNameGroups:
Code: [Select]
"unAssignVehicle _x" forEach units groupName

ThEoNeAnDoNlY

  • Guest
Re:problem with eject command
« Reply #4 on: 03 Jan 2005, 19:00:11 »
oki thnx for your help

Guy