Difference between revisions of "TASK CAR MISSION PED TARGET"

From GTAMods Wiki
Jump to navigation Jump to search
(Added unknown parameter 4 (Seems to be flags))
Line 48: Line 48:
 
|Integer
 
|Integer
 
|Description
 
|Description
 +
|-
 +
|0
 +
|Normal driving, stop for traffic lights
 
|-
 
|-
 
|1
 
|1
|Abide traffic laws
+
|Ignore traffic lights, drive around traffic
 
|-
 
|-
 
|2
 
|2
|Ignore traffic laws
+
|Ignore streets, try to drive directly to point
 +
|-
 +
|3
 +
|Ignore traffic lights, stay in lane
 
|}
 
|}

Revision as of 08:42, 7 September 2011

TASK_CAR_MISSION_PED_TARGET
Number of parameters: 8
Parameter #TypeDescription
1.IntegerChar Handle
2.IntegerVehicle Handle
3.IntegerTarget Char Handle
4.IntegerFlags
5.FloatDriving speed (Meters per second)
6.IntegerDriving style
7.IntegerDistance from target at which to stop (Flag 4 must be specified)
8.IntegerUnknown (seems to be "10")
Return value:
TypeDescription
None


This function will have the char (parameter_1) use the vehicle (parameter_2) to follow the target char (parameter_3). The char (parameter_1) will get in the driver of the vehicle automatically.


Known Flags Flag 2 and 4 can be combined (2 binary or 4) to make the car go to the target, stop, then go to the target, stop, and so on.

Integer Description
0 Do nothing
1 Seems to make the car cruise around the city. Whether it is related to the target in any way, is still unknown.
2 Will make the car follow the target.
4 Will make the car go to the target, then stop.


Known Driving Styles

Integer Description
0 Normal driving, stop for traffic lights
1 Ignore traffic lights, drive around traffic
2 Ignore streets, try to drive directly to point
3 Ignore traffic lights, stay in lane