Difference between revisions of "secondaryWeapon"
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "|= Comments" to "|Comments=")
|Line 1:||Line 1:|
Revision as of 16:57, 1 September 2019
Hover & click on the images for descriptions
- Returns name of a unit's secondary weapon (empty string if none).
- Example 1:
_sWeap = secondaryWeapon player;
- Example 2:
hint secondaryWeapon player; //"launch_NLAW_F"
- See also:
- Posted on August 4, 2006 - 10:58
- Notes from before the conversion: 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. Use currentWeapon to detect the active weapon.