0057

From GTAMods Wiki
Jump to navigation Jump to search

GTA III Vice City IS_PLAYER_IN_AREA_3D


Description
Checks if the player is in the 3d area
Syntax
0057:   player [player handle] [int] [flt1] [flt2] [flt3] [flt4] [flt5] [flt6]
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]
Z-coordinate of one corner of area
[flt4]
X-coordinate of other corner of area
[flt5]
Y-coordinate of other corner of area
[flt6]
Z-coordinate of other corner of area
[int]
Show cylindrical marker

This conditional opcode returns true if the player is in the cubic area. It allows you to mark the area 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 remain drawn in the world. In GTA III only, if debug mode is switched on, a debug cube will also be drawn along with the marker denoting the boundaries of the area.

Keywords

check, player, area, 3d, cube