getWeaponCargo: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3>" to "") |
||
Line 25: | Line 25: | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> |
Revision as of 13:43, 18 January 2021
Description
- Description:
- Returns all weapons types and count from the cargo space
- Groups:
- Vehicle InventoryContainers
Syntax
- Syntax:
- 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;
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.54
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Vehicle Inventory
- Command Group: Containers
- Arma 2: Operation Arrowhead: New Scripting Commands List
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands