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);
Results appear below as you type; use the arrow keys to move through them.
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);