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);
Command in Object Manipulation
Also available as Markdown and JSON, or read the original wiki page.
Returns index of the unit in cargo. -1 if not in cargo.
vehicle getCargoIndex unit
Parameters:
Returns: Number
player moveInCargo heli;
hint str (heli getCargoIndex player);