Difference between revisions of "TASK GO STRAIGHT TO COORD"

From GTAMods Wiki
Jump to navigation Jump to search
(Added page)
 
 
Line 10: Line 10:
 
|p4d=Z Coordinate
 
|p4d=Z Coordinate
 
|p5t=integer
 
|p5t=integer
|p5d=Move type
+
|p5d=[[Move_States|Move type]]
 
|p6t=integer
 
|p6t=integer
 
|p6d=Unknown (suggested: -1)
 
|p6d=Unknown (suggested: -1)

Latest revision as of 09:41, 2 April 2015

TASK_GO_STRAIGHT_TO_COORD
Number of parameters: 6
Parameter #TypeDescription
1.handleChar to do the task
2.floatX Coordinate
3.floatY Coordinate
4.floatZ Coordinate
5.integerMove type
6.integerUnknown (suggested: -1)
Return value:
TypeDescription
None

Makes the specified char go to the specified coordinates, using the specified move type.

If P6 is not -1, the char will warp to the specified coordinates after 2 seconds.

Known Move Types

Integer Description
0 Unsure. Seems to make the char not move, then teleport to the specified coordinates after about 20 seconds.
1 Same as 0.
2 Walk.
3 Run with Gun (Regardless of the presence of a gun).
4 Sprint.