secondaryWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SECONDARYWEAPON]]
[[Category:Scripting Commands|SECONDARYWEAPON]]
[[Category:Scripting Commands OFP 1.97|SECONDARYWEAPON]]
[[Category:Scripting Commands OFP 1.96|SECONDARYWEAPON]]
[[Category:Scripting Commands ArmA|SECONDARYWEAPON]]
[[Category:Scripting Commands ArmA|SECONDARYWEAPON]]



Revision as of 20:26, 1 June 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.