Difference between revisions of "0490"
Jump to navigation
Jump to search
(Created page with "{{Icon|VC}} '''HAS_PLAYER_GOT_WEAPON''' <hr /> '''Description''' : Checks if the player has the specified weapon '''Syntax''' : 0490: player [''player handle''] has_wea...") |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Icon|VC}} | + | {{OpCode |
− | + | | games = {{Icon|VC}} | |
− | + | | command = HAS_PLAYER_GOT_WEAPON | |
− | + | | description = Checks if the player has the specified weapon | |
− | + | | syntax1 = 0490: player [''player handle''] has_weapon [''int''] | |
− | + | | p1t = [''player handle''] | |
− | + | | p1d = The [[0053|handle of the player]] | |
− | + | | p2t = [''int''] | |
− | + | | p2d = [[Weapon#Vice City|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 | + | 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 slot unless you are wasted or busted. Weapon type ''0'' does not actually check if you have a fist and produces a meaningless result. |
== Keywords == | == Keywords == | ||
has, player, got, weapon | has, player, got, weapon | ||
− | [[ | + | == See also == |
+ | * {{Icon|SA}} [[0491]], checks if the character has the specified weapon |
Latest revision as of 07:02, 8 July 2017
- 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 slot unless you are wasted or busted. Weapon type 0 does not actually check if you have a fist and produces a meaningless result.
Keywords
has, player, got, weapon
See also
- 0491, checks if the character has the specified weapon