0490
Revision as of 04:26, 7 July 2017 by Spaceeinstein (talk | contribs)
- Description
- Checks if the player has the specified weapon
- Syntax
- 0490: player [player handle] has_weapon [int]
- Parameter
- [player handle]
- The handle of the player
- [int]
- Weapon type
This conditional opcode returns true if you have the specified weapon. It will remain true if you run out of ammo for that weapon and have not replaced it with another weapon of the same group unless you are wasted or busted. Do not use weapon number 0 because it does not actually check if you have a fist so it produces a meaningless result.
Keywords
has, player, got, weapon
See also
- 0491, checks if the character has the specified weapon