magazinesAmmoCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.22|= Game version ________________...")
 
m (Replaced <code> with <sqf>)
 
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.22


|1.22|= Game version
|gr1= Vehicle Inventory


____________________________________________________________________________________________
|descr=Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines.


|Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo magazines. |= Description
|s1= [[magazinesAmmoCargo]] vehicle
____________________________________________________________________________________________


| '''magazinesAmmoCargo''' vehicle |= Syntax
|p1= vehicle: [[Object]]


|p1= vehicle: [[Object]] |= Parameter 1
|r1= [[Array]]


| [[Array]] |= Return value
|x1= <sqf>magazinesAmmoCargo vehicle player;</sqf>
____________________________________________________________________________________________
|x2= <sqf>magazinesAmmoCargo uniformContainer player;</sqf>
 
<sqf>
|x1= <code>magazinesAmmoCargo (vehicle player)</code> |= Example 1
// returns:
____________________________________________________________________________________________
[
 
["30Rnd_65x39_caseless_mag",30],
|  |= See also
["30Rnd_65x39_caseless_mag",30],
["Chemlight_green",1]
]
</sqf>


|seealso= [[magazinesAmmo]] [[magazinesAmmoFull]]
}}
}}
<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_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:08, 14 May 2022

Hover & click on the images for description

Description

Description:
Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines.
Groups:
Vehicle Inventory

Syntax

Syntax:
magazinesAmmoCargo vehicle
Parameters:
vehicle: Object
Return Value:
Array

Examples

Example 1:
magazinesAmmoCargo vehicle player;
Example 2:
magazinesAmmoCargo uniformContainer player;
// returns: [ ["30Rnd_65x39_caseless_mag",30], ["30Rnd_65x39_caseless_mag",30], ["Chemlight_green",1] ]

Additional Information

See also:
magazinesAmmo magazinesAmmoFull

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