getCargoIndex

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.26
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.26

Description

Description:
Returns index of the unit in cargo. 0,1,2... or -1 if not in cargo.

Syntax

Syntax:
vehicle getCargoIndex unit
Parameters:
vehicle: Object
unit: Object
Return Value:
Number

Examples

Example 1:
player moveInCargo heli; hint str (heli getCargoIndex player);

Additional Information

Multiplayer:
-
See also:
moveInCargoassignAsCargoIndexemptyPositions

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section