Arma 3 Scripting

Command in Object Manipulation

getCargoIndex

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns index of the unit in cargo. -1 if not in cargo.

Syntax

vehicle getCargoIndex unit

Parameters:

Returns: Number

Examples

Example 1

player moveInCargo heli;
hint str (heli getCargoIndex player);

See also

moveInCargo · assignAsCargoIndex · emptyPositions