Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0A3E

Opcode Database

0A3E

DescriptionReturns the first char in the ped pool within radius of the specified point, under the following conditions:
  • The character has been generated as a ped (not by a script or mission)
  • The character is not in an active conversation
  • The character is not being faded out by the streamer
  • The character is not fading out (being removed elegantly)
  • The character is not in a vehicle
  • The character is not dead
  • The character is not part of a group (group member or leader set by the script)


This opcode will not mark the character as needed by the script. Therefore there is no need for 01C2.
Parameters (v2)1) X Coord (Float) (FLOAT)
2) Y Coord (Float) (FLOAT)
3) Z Coord (Float) (FLOAT)
4) X Radius (Float) (FLOAT)
5) Y Radius (Float) (FLOAT)
6) Z Radius (Float) (FLOAT)
7) (Returned) Actor handle (Integer) (INT)
Gamessa
CategoryActor
San Andreas
sascm.ini0A3E=7,get_random_char_in_area_offset_no_save %1d% %2d% %3d% radius %4d% %5d% %6d% store_to %7d%
Example0A3E: get_random_char_in_area_offset_no_save $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 radius 0.6 0.6 1.0 store_to 17@
Command NameGET_RANDOM_CHAR_IN_AREA_OFFSET_NO_SAVE

<< 0A3D

0A3F >>