GTAG - Modding - Opcode Database - 0056
Opcode Database
0056
| Description | Returns 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) |
| Games | |
| Category | Common, Conditional, Player, Sphere |
| Command Name (IV) | IS_PLAYER_IN_AREA_2D |
| Vice City | |
| sascm.ini | 0056=6, player %1d% coords %2d% %3d% %4d% %5d% sphere 0 |
| Example | 0056: player $player_char coords -1682.24 -179.9125 -1600.448 -150.8878 sphere 0 |
| Command Name | IS_PLAYER_IN_AREA_2D |
| GTA III | |
| gtascm.ini | 0056=6, is_player_in_area_2d %1d% coords %2d% %3d% %4d% %5d% sphere %6b% |
| Example | 0056: is_player_in_area_2d $PLAYER_CHAR coords -229.9999 255.0 -209.9999 275.0 sphere 0 |
| Command Name | IS_PLAYER_IN_AREA_2D |

