GET RANDOM CHAR IN AREA OFFSET NO SAVE

From GTAMods Wiki
Jump to navigation Jump to search
GET_RANDOM_CHAR_IN_AREA_OFFSET_NO_SAVE
Number of parameters: 7
Parameter #TypeDescription
1.floatX Corner of Radius
2.floatY Corner of Radius
3.floatZ Corner of Radius
4.floatX Radius
5.floatY Radius
6.floatZ Radius
7.ped handlereturn selected ped
Return value:
TypeDescription
None

This function will select a random char in the specified radius and return their pointer in Parameter 7.

At the very minimum, GET_RANDOM_CHAR_IN_AREA_OFFSET_NO_SAVE must be preceded by BEGIN_CHAR_SEARCH_CRITERIA and END_CHAR_SEARCH_CRITERIA.