currentWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return the name of the currently selected weapon (on the primary turret for vehicles).  |= Description
| Return the name of the currently selected weapon (on the primary turret, for vehicles only).  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''currentWeapon''' vehicle |= Syntax
| '''currentWeapon''' vehicle |= Syntax


|p1= vehicle: |= PARAMETER1  
|p1= vehicle: [[Object]] |= PARAMETER1  


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




|x1= <code>(example)</code>|= EXAMPLE1  
|x1= <code>currentWeapon (vehicle player)</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 02:57, 15 July 2009

Hover & click on the images for description

Description

Description:
Return the name of the currently selected weapon (on the primary turret, for vehicles only).
Groups:
Uncategorised

Syntax

Syntax:
currentWeapon vehicle
Parameters:
vehicle: Object
Return Value:
String

Examples

Example 1:
currentWeapon (vehicle player)

Additional Information

See also:
See also needed

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