Difference between revisions of "0056"
Jump to navigation
Jump to search
(page rewrite) |
m |
||
Line 18: | Line 18: | ||
}} | }} | ||
− | This conditional opcode returns true if the player is in the rectangular area regardless of the player's z-coordinate. It allows you to mark the area's highest [[02CE|ground z]] with a cylindrical marker, colored blue in GTA III and pink in Vice City. The opcode must be placed in a loop with [[0001|wait]] 0 in order for the marker to appear in the world. | + | This conditional opcode returns true if the player is in the rectangular area regardless of the player's z-coordinate. It allows you to mark the area's highest [[02CE|ground z]] with a cylindrical marker, colored blue in GTA III and pink in Vice City. The opcode must be placed in a loop with [[0001|wait]] 0 in order for the marker to appear in the world. In GTA III only, if [[00C3|debug mode]] is switched on, a debug square will be drawn along with the marker. |
== Keywords == | == Keywords == | ||
check, player, area, 2d | check, player, area, 2d |
Revision as of 15:05, 13 December 2016
- Description
- Checks if the player is in the area
- Syntax
- 0056: player [player handle] [int] [flt1] [flt2] [flt3] [flt4]
- Parameter
- [player handle]
- The handle of the player
- [flt1]
- X-coordinate of one corner of area
- [flt2]
- Y-coordinate of one corner of area
- [flt3]
- X-coordinate of other corner of area
- [flt4]
- Y-coordinate of other corner of area
- [int]
- Show cylindrical marker
This conditional opcode returns true if the player is in the rectangular area regardless of the player's z-coordinate. It allows you to mark the area's highest ground z with a cylindrical marker, colored blue in GTA III and pink in Vice City. The opcode must be placed in a loop with wait 0 in order for the marker to appear in the world. In GTA III only, if debug mode is switched on, a debug square will be drawn along with the marker.
Keywords
check, player, area, 2d