getMagazineCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *V([a-z])" to "$1 - v$2")
 
(31 intermediate revisions by 2 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


|gr1= Vehicle Inventory |GROUP1=
|arg= global


|gr2= Containers |GROUP2=
|gr1= Vehicle Inventory
____________________________________________________________________________________________


| Returns all magazines types and count from the cargo space |DESCRIPTION=
|gr2= Containers
____________________________________________________________________________________________


| [[getMagazineCargo]] object |SYNTAX=
|descr= Returns all magazines types and count from the cargo space


|s1= [[getMagazineCargo]] object


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


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


| [[magazinesAmmoCargo]], [[magazineCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[clearMagazineCargo]], [[clearMagazineCargoGlobal]]|SEEALSO=
|x1= <sqf>_content = getMagazineCargo carName;</sqf>
|x2= <sqf>_content = getMagazineCargo ammoBoxName;</sqf>
|x3= <sqf>hint str getMagazineCargo unitBackpack cursorTarget;</sqf>


|seealso= [[magazinesAmmoCargo]] [[magazineCargo]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[clearMagazineCargo]] [[clearMagazineCargoGlobal]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[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