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


Introduced in

Version:1.00

Description

Description:Returns class name of a unit primary weapon (for example, a rifle).

Syntax

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

Examples

Examples:
_pWeap = primaryWeapon player

Additional Information

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

Notes