primaryWeapon

From Bohemia Interactive Community
Revision as of 08:58, 20 May 2006 by Thobson (talk | contribs)
Jump to navigation Jump to search


primaryWeapon vehicle


Operand types:

vehicle: Object

Type of returned value:

String

Compatibility:

Added in version 1.75

Description:

Returns name of vehicle's primary weapon (empty string if none).


Example:

pWeap = primaryWeapon player


Comments:

primaryWeapon tells you what weapon the unit has irrespective of the status of the weapon. For example a unit that has an M16 on his back will still report an M16 as its primary weapon. There is no command that will enable you to detect the active weapon.