GTAG - Modding - Opcode Database - 089E
Opcode Database
089E
| Description | Loops through the ped pool and returns the first character that is within the specified radius and has the "buys drugs" flag set in peds.ide. Used in the 'DEALER' ped script brain. Excludes dead peds and peds in a group. Note: This command saves the found character. Use 01C2 when you no longer need the character. |
|---|---|
| Parameters (v2) | 1) X Coord (Float) (FLOAT) 2) Y Coord (Float) (FLOAT) 3) Z Coord (Float) (FLOAT) 4) Radius (Float) (FLOAT) 5) (Returned) Actor handle (Integer) (INT) |
| Games | |
| Category | Actor, Creation |
| San Andreas | |
| sascm.ini | 089E=5,get_random_char_in_sphere_only_drugs_buyers %1d% %2d% %3d% radius %4d% store_to %5d% |
| Example | 089E: get_random_char_in_sphere_only_drugs_buyers 3@ 4@ 5@ radius 5.0 store_to 11@ |
| Command Name | GET_RANDOM_CHAR_IN_SPHERE_ONLY_DRUGS_BUYERS |

