Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0105

Opcode Database

0105

DescriptionSets 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.ini0105=6, locate_char_on_foot_char_3d %1d% char %2d% radius %3d% %4d% %5d% sphere %6h%
Example0105: locate_char_on_foot_char_3d $PLAYER_ACTOR char 102@(42@,9i) radius 5.0 5.0 2.0 sphere 0
Command NameLOCATE_CHAR_ON_FOOT_CHAR_3D
Vice City
sascm.ini0105=6, actor %1d% near_actor_on_foot %2d% radius %3d% %4d% %5d% sphere %6h% ;; never used in VC or gta 3
Example0105: actor $PLAYER_ACTOR near_actor 2@ radius 5.0 5.0 2.0 sphere 0 on_foot
Command NameLOCATE_CHAR_ON_FOOT_CHAR_3D
GTA III
gtascm.ini0105=6, actor %1d% near_actor_on_foot %2d% radius %3d% %4d% %5d% sphere %6h%
Example0105: actor $PLAYER_ACTOR near_actor 2@ radius 5.0 5.0 2.0 sphere 0 on_foot
Command NameLOCATE_CHAR_ON_FOOT_CHAR_3D

<< 0104

0106 >>