getWeaponCargo

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.54
  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 2: Operation Arrowhead
Version:
1.54

Description

Description:
Returns all weapons types and count from the cargo space

Syntax

Syntax:
result = getWeaponCargo object
Parameters:
object: Object - object to check
Return Value:
Array - format [all_types_array, all_counts_array]. Eg: [["a", "b"], [3, 2]]

Examples

Example 1:
_content = getWeaponCargo carName;
Example 2:
_content = getWeaponCargo ammoBoxName; Sample result returns: [["arifle_Katiba_F","launch_B_Titan_short_F"],[2,1]]

Additional Information

Multiplayer:
-
See also:
weaponCargoaddWeaponCargoaddWeaponCargoGlobalclearWeaponCargoclearWeaponCargoGlobal

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