secondaryWeapon
- Arma 3 v0.50
- First in Operation Flashpoint v1.75
Command · Markdown · JSON · original wiki page
Description
Returns the name of a unit's secondary weapon (launcher). To detect the weapon which is currently being used by the unit use currentWeapon.
Syntax
secondaryWeapon unit
Parameters:
unit: Object
Returns: String - class name of the secondary weapon or "" if none available
Examples
Example 1
private _secondaryWeapon = secondaryWeapon player;
Example 2
hint secondaryWeapon player; // "launch_NLAW_F"
See also
secondaryWeaponMagazine · secondaryWeaponItems · addSecondaryWeaponItem · primaryWeapon · handgunWeapon · currentWeapon · weapons