getMagazineCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *V([a-z])" to "$1 - v$2")
 
(45 intermediate revisions by 4 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


|arg= global |= Arguments in MP
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| Returns all magazines types and count from the cargo space |= Description
|arg= global
____________________________________________________________________________________________


| result <nowiki>=</nowiki> '''getMagazineCargo''' object |= Syntax
|gr1= Vehicle Inventory


|gr2= Containers


|p1= object: [[Object]] - object to check |= Parameter 1
|descr= Returns all magazines types and count from the cargo space


| [[Array]] of arrays. [["5MagsType1","10MagsType2"],[5,10]]|= Return value
|s1= [[getMagazineCargo]] object
____________________________________________________________________________________________
 
|x1= <code>_content = [[getMagazineCargo]] carName;</code> |= Example 1
|x2= <code>_content = [[getMagazineCargo]] ammoBoxName;</code> |= Example 2
|x3= <code>[[hint]] [[str]] [[getMagazineCargo]] [[unitBackpack]] [[cursorTarget]];</code> |= Example 3
____________________________________________________________________________________________


| [[magazineCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[clearMagazineCargo]], [[clearMagazineCargoGlobal]]|= See also
|p1= object: [[Object]] - vehicle or ammo box


}}
|r1= [[Array]] of arrays. [["5MagsType1","10MagsType2"],[5,10]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>_content = getMagazineCargo carName;</sqf>
<dl class="command_description">
|x2= <sqf>_content = getMagazineCargo ammoBoxName;</sqf>
<!-- Note Section BEGIN -->
|x3= <sqf>hint str getMagazineCargo unitBackpack cursorTarget;</sqf>
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[magazinesAmmoCargo]] [[magazineCargo]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[clearMagazineCargo]] [[clearMagazineCargoGlobal]]
 
}}
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[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 14: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