currentMagazineDetail: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=")
m (Text replacement - "\|" to "|")
Line 15: Line 15:
|p1= object: [[Object]] - unit or vehicle
|p1= object: [[Object]] - unit or vehicle


\|r1= [[String]]
|r1= [[String]]


\|x1= <code>_currentMagazineDetail = [[currentMagazineDetail]] [[player]]; {{cc|"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"}}</code>
|x1= <code>_currentMagazineDetail = [[currentMagazineDetail]] [[player]]; {{cc|"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"}}</code>


|x2= <code>_currentMagazineDetail = [[currentMagazineDetail]] Mi_48; {{cc|"30mm HE Shells(250/250)[id:21]}}</code>
|x2= <code>_currentMagazineDetail = [[currentMagazineDetail]] Mi_48; {{cc|"30mm HE Shells(250/250)[id:21]}}</code>

Revision as of 10:33, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Unit InventoryVehicle Inventory

Syntax

Syntax:
Syntax needed
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