getItemCargo

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  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:
0.50

Description

Description:
Returns all items names and count from ammo box (or any general weapon holder container).

Syntax

Syntax:
getItemCargo box
Parameters:
box: Object
Return Value:
Array of Arrays - Format: [["5ItemsType1","10ItemsType2"],[5,10]]

Examples

Example 1:
hint str getItemCargo cursorTarget;

Additional Information

Multiplayer:
-
See also:
itemCargoaddItemCargoaddItemCargoGlobalclearItemCargoclearItemCargoGlobal

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