Arma 3 Scripting

getCargoIndex

  • Global argument
  • Arma 3 v1.26

Command · Markdown · JSON · 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