GTAG - Modding - Opcode Database - 0104
Opcode Database
0104
| Description | Returns true if one actor is in radius of the other actor, with the optional addition of a sphere surrounding the actor. Sets up a radius from a character where another characters presence can be detected. If the 'sphere' bool is set to true, a cyllinder marker will indicate the position of the target point. This 'LOCATE' command returns true under the highlighted conditions:
|
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) Actor handle (Integer) (INT) 3) X Radius (Float) (FLOAT) 4) Y Radius (Float) (FLOAT) 5) Z Radius (Float) (FLOAT) 6) Boolean (1 or 0) (INT) |
| Games | |
| Category | Actor, Common, Conditional, Locate, Locate |
| San Andreas | |
| sascm.ini | 0104=6, locate_char_any_means_char_3d %1d% char %2d% radius %3d% %4d% %5d% sphere %6h% |
| Example | 0104: locate_char_any_means_char_3d $PLAYER_ACTOR char 1@ radius 15.0 15.0 15.0 sphere 0 |
| Command Name | LOCATE_CHAR_ANY_MEANS_CHAR_3D |
| Vice City | |
| sascm.ini | 0104=6, actor %1d% near_actor %2d% radius %3d% %4d% %5d% sphere %6h% |
| Example | 0104: actor $PLAYER_ACTOR near_actor 1@ radius 15.0 15.0 15.0 sphere 0 |
| Command Name | LOCATE_CHAR_ANY_MEANS_CHAR_3D |
| GTA III | |
| gtascm.ini | 0104=6, actor %1d% near_actor %2d% radius %3d% %4d% %5d% sphere %6h% |
| Example | 0104: actor $PLAYER_ACTOR near_actor 1@ radius 15.0 15.0 15.0 sphere 0 |
| Command Name | LOCATE_CHAR_CHAR_3D |

