currentMagazine: Difference between revisions

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


| Return the name of the type of the currently using magazine (on the primary turret for vehicles).  |= Description
| Returns class name of currently loaded vehicle's magazine.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''currentMagazine''' vehicle |= Syntax
| '''currentMagazine''' vehicle |= Syntax


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


|p2= |= PARAMETER2  
|p2= |= PARAMETER2  
Line 21: Line 21:




|x1= <pre>_magazineClass = currentMagazine player;//Example: "30Rnd_545x39_AK"</pre>|= EXAMPLE1  
|x1= <code>_magazineClass = [[currentMagazine]] [[player]];//Example: "30Rnd_545x39_AK"</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 14:02, 5 August 2013

Hover & click on the images for description

Description

Description:
Returns class name of currently loaded vehicle's magazine.
Groups:
Uncategorised

Syntax

Syntax:
currentMagazine vehicle
Parameters:
vehicle: Object - unit or vehicle
Return Value:
String

Examples

Example 1:
_magazineClass = currentMagazine player;//Example: "30Rnd_545x39_AK"

Additional Information

See also:
magazinescurrentWeaponcurrentMuzzlecurrentVisionModecurrentWeaponModecurrentZeroingmagazinesTurretweaponsTurret

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

Posted on October 4, 2010
kju
See notes of currentWeapon.

Bottom Section