currentMagazineDetail: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the type name of the currently used magazine (on the primary turret for vehicles).  |= 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]]  |= PARAMETER1  
|p1= vehicle: [[Object]] - unit or vehicle |= PARAMETER1  


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




|x1= <code>currentMagazineDetail player</code>|= EXAMPLE1  
|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>|= EXAMPLE2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 13:54, 5 August 2013

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]"

Additional Information

See also:
magazinesDetail

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