Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:

Assigns a cargo role to the given unit, and places it into the vehicle (the effect is immediate, no animation is played).

Note: If you want to place the unit that is already inside a vehicle in a different vehicle position, move the unit out of the vehicle first, and then assign the new position.

To get a unit out of a vehicle, run: unit action ['GetOut', vehicle]

Syntax

Syntax:unit moveInCargo vehicle
Parameters:
  • unit: Object - Unit to move.
  • vehicle: Object - Vehicle to move to.
Return Value:Nothing

Alternative Syntax

Syntax:unit moveInCargo [vehicle, index]
Parameters:
  • unit: Object - Unit to move.
  • vehicle: Object - Vehicle to move to.
  • index: Number - Index of cargo position.
Return Value:Nothing

Examples

Examples:_soldierOne moveInCargo _jeepOne_soldierOne moveInCargo [_jeepOne, 1]

Additional Information

See also:moveInCommander, moveInDriver, moveInGunner, moveInTurret, assignAsCargo
Multiplayer: 
Problems: 

Notes