currentMagazineDetail: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 16: | Line 16: | ||
|r1= [[String]] | |r1= [[String]] | ||
|x1= <code>_currentMagazineDetail = | |x1= <code>_currentMagazineDetail = currentMagazineDetail [[player]]; {{cc|"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"}}</code> | ||
|x2= <code>_currentMagazineDetail = | |x2= <code>_currentMagazineDetail = currentMagazineDetail Mi_48; {{cc|"30mm HE Shells(250/250)[id:21]}}</code> | ||
|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]"}} |
Revision as of 11:01, 12 May 2022
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