currentMagazineDetail: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma3 |Game name=
|game1= arma3
|version1= 0.50


|0.50|Game version=
|gr1= Unit Inventory


|gr1= Unit Inventory |GROUP1=
|gr2= Vehicle Inventory


|gr2= Vehicle Inventory |GROUP2=
|descr= Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id.


| Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id. |DESCRIPTION=
|s1= [[currentMagazineDetail]] object


| [[currentMagazineDetail]] object |SYNTAX=
|p1= object: [[Object]] - unit or vehicle


|p1= object: [[Object]] - unit or vehicle |PARAMETER1=
|r1= [[String]]


| [[String]] |RETURNVALUE=
|x1= <sqf>_currentMagazineDetail = currentMagazineDetail player; // "6.5mm 30Rnd STANAG Mag(30/30)[id:0]"</sqf>


|x1= <code>_currentMagazineDetail = [[currentMagazineDetail]] [[player]]; {{cc|"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"}}</code> |EXAMPLE1=
|x2= <sqf>_currentMagazineDetail = currentMagazineDetail Mi_48; // "30mm HE Shells(250/250)[id:21]</sqf>


|x2= <code>_currentMagazineDetail = [[currentMagazineDetail]] Mi_48; {{cc|"30mm HE Shells(250/250)[id:21]}}</code> |EXAMPLE2=
|x3= <sqf>_cmd = currentMagazineDetail player; // "9mm 16Rnd Mag(13/16)[id/cr:10000011/0]"
_cmd splitString "([ ]/:)"; // ["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]</sqf>


|x3= <code>_cmd = [[currentMagazineDetail]] [[player]]; {{cc|"9mm 16Rnd Mag(13/16)[id/cr:10000011/0]"}}
|seealso= [[magazinesDetail]] [[currentMagazine]]
_cmd [[splitString]] "([ ]/:)"; {{cc|["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]}}</code> |EXAMPLE3=
 
| [[magazinesDetail]], [[currentMagazine]] |SEEALSO=
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>

Latest revision as of 11:22, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id.
Groups:
Unit InventoryVehicle Inventory

Syntax

Syntax:
currentMagazineDetail object
Parameters:
object: Object - unit or vehicle
Return Value:
String

Examples

Example 1:
_currentMagazineDetail = currentMagazineDetail player; // "6.5mm 30Rnd STANAG Mag(30/30)[id:0]"
Example 2:
_currentMagazineDetail = currentMagazineDetail Mi_48; // "30mm HE Shells(250/250)[id:21]
Example 3:
_cmd = currentMagazineDetail player; // "9mm 16Rnd Mag(13/16)[id/cr:10000011/0]" _cmd splitString "([ ]/:)"; // ["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]

Additional Information

See also:
magazinesDetail currentMagazine

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