secondaryWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 27: Line 27:


sWeap = '''secondaryWeapon''' [[player]]
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.

Revision as of 09:00, 20 May 2006


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.