Home   Help Search Login Register  

Author Topic: AI boarding other vehicles in group  (Read 529 times)

0 Members and 2 Guests are viewing this topic.

Conz

  • Guest
AI boarding other vehicles in group
« on: 28 Feb 2003, 21:53:10 »
I have 2 chinooks called chinook1 and 2 which are in a group together, and 4 squads of AI troops who need to board the chinooks.
When i do it the normal way of adding a load / getin waypoint all of them rush for the first chinook and both chinooks dust off when the first one is full, leaving 1 and a half squads behind.
How can i script something which will make squad1 and squad2 board chinook2 and squad3 + squad4 board chinook2 ?


deaddog

  • Guest
Re:AI boarding other vehicles in group
« Reply #1 on: 04 Mar 2003, 04:58:04 »
Try this in a script:

{_x assignascargo chinook1} foreach (units squad1)
{_x assignascargo chinook1} foreach (units squad2)
{_x assignascargo chinook2} foreach (units squad3)
{_x assignascargo chinook2} foreach (units squad4)

(units squad1) ordergetin true
(units squad2) ordergetin true
(units squad3) ordergetin true
(units squad4) ordergetin true

I don't think you will be able to use the normal load/getin waypoints with this.  You'll have to do something to make sure the choppers don't take off before all the squads are loaded.   I'm working on a mission that does the same thing, only with trucks instead of choppers.  Two trucks are in a group and 4 four-man squads board them.

Conz

  • Guest
Re:AI boarding other vehicles in group
« Reply #2 on: 07 Mar 2003, 21:03:58 »
its working, tnx :)