getMagazineCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *V([a-z])" to "$1 - v$2")
 
(48 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.54


|1.54|= Game version
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| Returns all magazines types and count from the cargo space |= Description
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| result <nowiki>=</nowiki> '''getMagazineCargo''' object |= Syntax
|arg= global


|gr1= Vehicle Inventory


|p1= object: [[Object]] - object to check |= Parameter 1
|gr2= Containers


| [[Array]] |= Return value
|descr= Returns all magazines types and count from the cargo space
____________________________________________________________________________________________
 
|x1= <pre>_content <nowiki>=</nowiki> getMagazineCargo carName; </pre> |= Example 1
|x2= <pre>_content <nowiki>=</nowiki> getMagazineCargo ammoBoxName;</pre> |= Example 2
|x3= <pre>hint str getMagazineCargo unitBackpack cursorTarget;</pre> |= Example 3
____________________________________________________________________________________________


| [[addMagazineCargo]] |= See also
|s1= [[getMagazineCargo]] object


}}
|p1= object: [[Object]] - vehicle or ammo box


<h3 style="display:none">Notes</h3>
|r1= [[Array]] of arrays. [["5MagsType1","10MagsType2"],[5,10]]
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_content = getMagazineCargo carName;</sqf>
|x2= <sqf>_content = getMagazineCargo ammoBoxName;</sqf>
|x3= <sqf>hint str getMagazineCargo unitBackpack cursorTarget;</sqf>


[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
|seealso= [[magazinesAmmoCargo]] [[magazineCargo]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[clearMagazineCargo]] [[clearMagazineCargoGlobal]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:46, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns all magazines types and count from the cargo space
Groups:
Vehicle InventoryContainers

Syntax

Syntax:
getMagazineCargo object
Parameters:
object: Object - vehicle or ammo box
Return Value:
Array of arrays. [["5MagsType1","10MagsType2"],[5,10]]

Examples

Example 1:
_content = getMagazineCargo carName;
Example 2:
_content = getMagazineCargo ammoBoxName;
Example 3:
hint str getMagazineCargo unitBackpack cursorTarget;

Additional Information

See also:
magazinesAmmoCargo magazineCargo addMagazineCargo addMagazineCargoGlobal clearMagazineCargo clearMagazineCargoGlobal

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