Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Returns the class name of the unit secondary weapon (for example, a grenade thrower).

Syntax

Syntax:secondaryWeapon unit
Parameters:
  • unit: Object - Unit to check.
Return Value:String - Class name of secondary weapon. Returns an empty string, if the unit does not have one.

Examples

Examples:
_sWeap = secondaryWeapon player

Additional Information

See also: primaryWeapon, PistolWeapon, weapons, getWeaponName
Multiplayer:
Problems:

Notes