secondaryWeapon

From Bohemia Interactive Community
Revision as of 10:00, 20 May 2006 by Thobson (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


secondaryWeapon vehicle


Operand types:

vehicle: Object

Type of returned value:

String

Compatibility:

Added in version 1.75

Description:

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


Example:

sWeap = secondaryWeapon player


Comments:

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