Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0056

Opcode Database

0056

DescriptionReturns true if the player is within a specified area.
Parameters (v2)1) Player handle (Integer) (INT)
2) X Coord (Float) (FLOAT)
3) Y Coord (Float) (FLOAT)
4) X Coord (Float) (FLOAT)
5) Y Coord (Float) (FLOAT)
6) Boolean (1 or 0) (INT)
Gamesvc iii
CategoryCommon, Conditional, Player, Sphere
Command Name (IV)IS_PLAYER_IN_AREA_2D
Vice City
sascm.ini0056=6, player %1d% coords %2d% %3d% %4d% %5d% sphere 0
Example0056: player $player_char coords -1682.24 -179.9125 -1600.448 -150.8878 sphere 0
Command NameIS_PLAYER_IN_AREA_2D
GTA III
gtascm.ini0056=6, is_player_in_area_2d %1d% coords %2d% %3d% %4d% %5d% sphere %6b%
Example0056: is_player_in_area_2d $PLAYER_CHAR coords -229.9999 255.0 -209.9999 275.0 sphere 0
Command NameIS_PLAYER_IN_AREA_2D

<< 0055

0057 >>