GET RANDOM CHAR IN AREA OFFSET NO SAVE

From GTAMods Wiki
Revision as of 01:15, 10 April 2009 by Chamber (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.