currentMagazineDetail: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 9: Line 8:


|gr2= Vehicle Inventory |GROUP2=
|gr2= Vehicle Inventory |GROUP2=
____________________________________________________________________________________________


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


| [[currentMagazineDetail]] object |SYNTAX=
| [[currentMagazineDetail]] object |SYNTAX=
Line 26: Line 23:
|x3= <code>_cmd = [[currentMagazineDetail]] [[player]]; {{cc|"9mm 16Rnd Mag(13/16)[id/cr:10000011/0]"}}
|x3= <code>_cmd = [[currentMagazineDetail]] [[player]]; {{cc|"9mm 16Rnd Mag(13/16)[id/cr:10000011/0]"}}
_cmd [[splitString]] "([ ]/:)"; {{cc|["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]}}</code> |EXAMPLE3=
_cmd [[splitString]] "([ ]/:)"; {{cc|["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]}}</code> |EXAMPLE3=
____________________________________________________________________________________________


| [[magazinesDetail]], [[currentMagazine]] |SEEALSO=
| [[magazinesDetail]], [[currentMagazine]] |SEEALSO=

Revision as of 00:43, 17 January 2021

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:
magazinesDetailcurrentMagazine

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

Notes

Bottom Section