Difference between revisions of "GET RANDOM CHAR IN AREA OFFSET NO SAVE"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Native |np=7 |p1t=float |p1d=X Corner of Radius |p2t=float |p2d=Y Corner of Radius |p3t=float |p3d=Z Corner of Radius |p4t=float |p4d=X Radius |p5t=float |p5d=Y Radius |p6t=float |p6d=Z ...)
 
 
Line 18: Line 18:
  
 
This function will select a random char in the specified radius and return their pointer in Parameter 7.
 
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]].

Latest revision as of 01:15, 10 April 2009

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.