Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0104

Opcode Database

0104

DescriptionReturns 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:
  • Character is within the radius of the character
  • Character is in a vehicle
  • Character is on foot
  • Character is moving
  • Character is stopped
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)
Gamessa vc iii
CategoryActor, Common, Conditional, Locate, Locate
San Andreas
sascm.ini0104=6, locate_char_any_means_char_3d %1d% char %2d% radius %3d% %4d% %5d% sphere %6h%
Example0104: locate_char_any_means_char_3d $PLAYER_ACTOR char 1@ radius 15.0 15.0 15.0 sphere 0
Command NameLOCATE_CHAR_ANY_MEANS_CHAR_3D
Vice City
sascm.ini0104=6, actor %1d% near_actor %2d% radius %3d% %4d% %5d% sphere %6h%
Example0104: actor $PLAYER_ACTOR near_actor 1@ radius 15.0 15.0 15.0 sphere 0
Command NameLOCATE_CHAR_ANY_MEANS_CHAR_3D
GTA III
gtascm.ini0104=6, actor %1d% near_actor %2d% radius %3d% %4d% %5d% sphere %6h%
Example0104: actor $PLAYER_ACTOR near_actor 1@ radius 15.0 15.0 15.0 sphere 0
Command NameLOCATE_CHAR_CHAR_3D

<< 0103

0105 >>