currentMagazineDetail: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| '''currentMagazineDetail''' vehicle |= Syntax | | '''currentMagazineDetail''' vehicle |= Syntax | ||
|p1= vehicle: [[Object]] - unit or vehicle |= | |p1= vehicle: [[Object]] - unit or vehicle |PARAMETER1= | ||
| [[String]] |= | | [[String]] |RETURNVALUE= | ||
|x1= <code>_currentMagazineDetail = [[currentMagazineDetail]] [[player]]; //"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"</code>|= | |x1= <code>_currentMagazineDetail = [[currentMagazineDetail]] [[player]]; //"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"</code>|EXAMPLE1= | ||
|x2= <code>_currentMagazineDetail = [[currentMagazineDetail]] Mi_48; //"30mm HE Shells(250/250)[id:21]"</code>|= | |x2= <code>_currentMagazineDetail = [[currentMagazineDetail]] Mi_48; //"30mm HE Shells(250/250)[id:21]"</code>|EXAMPLE2= | ||
|x3= <code>_cmd = [[currentMagazineDetail]] [[player]]; //"9mm 16Rnd Mag(13/16)[id/cr:10000011/0]" | |x3= <code>_cmd = [[currentMagazineDetail]] [[player]]; //"9mm 16Rnd Mag(13/16)[id/cr:10000011/0]" | ||
_cmd [[splitString]] "([ ]/:)"; //["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]</code>|= | _cmd [[splitString]] "([ ]/:)"; //["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[magazinesDetail]], [[currentMagazine]] |= | | [[magazinesDetail]], [[currentMagazine]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:30, 7 April 2019
Description
- Description:
- Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id.
- Groups:
- Uncategorised
Syntax
- Syntax:
- currentMagazineDetail vehicle
- Parameters:
- vehicle: 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