getMagazineCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:ArmA 2 OA: New Scripting Commands List" to "[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *V([a-z])" to "$1 - v$2")
 
(39 intermediate revisions by 3 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 |Multiplayer Arguments=
|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 |PARAMETER1=
|descr= Returns all magazines types and count from the cargo space


| [[Array]] of arrays. [["5MagsType1","10MagsType2"],[5,10]]|RETURNVALUE=
|s1= [[getMagazineCargo]] object
____________________________________________________________________________________________
 
|x1= <code>_content = [[getMagazineCargo]] carName;</code> |EXAMPLE1=
|x2= <code>_content = [[getMagazineCargo]] ammoBoxName;</code> |EXAMPLE2=
|x3= <code>[[hint]] [[str]] [[getMagazineCargo]] [[unitBackpack]] [[cursorTarget]];</code> |EXAMPLE3=
____________________________________________________________________________________________


| [[magazineCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[clearMagazineCargo]], [[clearMagazineCargoGlobal]]|SEEALSO=
|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: Operation Arrowhead: 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