Home   Help Search Login Register  

Author Topic: Running APCs seperate to their units  (Read 462 times)

0 Members and 1 Guest are viewing this topic.

Dagon

  • Guest
Running APCs seperate to their units
« on: 02 Dec 2004, 10:03:58 »
is there anyway to set up a group of APCs to load/unload their personell yet not be able to recieve seperate orders? Another mission i'm working on involves a pair of APCs loaded with units driving along, stopping, unloading their units to attack a town and then waiting for the unit to finish off their objectives before jumping back in for evac.

Can someone create an example mission for me to reverse engineer?

Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:Running APCs seperate to their units
« Reply #1 on: 02 Dec 2004, 12:18:02 »
U can't do it with standard waypoints here's a script:
Code: [Select]
; Get in properly
; [[apcs], [units]] exec "getinProper.sqs"

_apcs = _this select 0
_units = _this select 1

_numA = count _apcs
_numU = count _units

_n = 0
#loop
if (_n < _numU) then {(_units select _n) assignAsCargo (_apcs select (_n % _numA))} else {goto "endloop"}
_n = _n+1
goto "loop"

#endloop
_units orderGetIn true
exit

I attached a sample mission on how to use it.
« Last Edit: 02 Dec 2004, 12:18:20 by MachoMan »
Get those missions out there you morons!