currentMagazineDetail: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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''' vehicle |SYNTAX=
| [[currentMagazineDetail]] vehicle |SYNTAX=


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


| [[String]] |RETURNVALUE=  
| [[String]] |RETURNVALUE=


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


|x1= <code>_currentMagazineDetail = [[currentMagazineDetail]] [[player]]; //"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"</code>|EXAMPLE1=
|x2= <code>_currentMagazineDetail = [[currentMagazineDetail]] Mi_48; {{cc|"30mm HE Shells(250/250)[id:21]}}</code> |EXAMPLE2=
|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]]; {{cc|"9mm 16Rnd Mag(13/16)[id/cr:10000011/0]"}}
_cmd [[splitString]] "([ ]/:)"; //["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]</code>|EXAMPLE2=  
_cmd [[splitString]] "([ ]/:)"; {{cc|["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]}}</code> |EXAMPLE3=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[magazinesDetail]], [[currentMagazine]] |SEEALSO=  
| [[magazinesDetail]], [[currentMagazine]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}


Line 37: Line 35:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 00:18, 24 August 2020

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

Notes

Bottom Section