primaryWeapon: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
pWeap = '''primaryWeapon''' [[player]] | 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. |
Revision as of 08:58, 20 May 2006
primaryWeapon vehicle
Operand types:
vehicle: Object
Type of returned value:
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.