Difference between revisions of "TASK CAR MISSION PED TARGET"
Jump to navigation
Jump to search
Impediment (talk | contribs) (Created page with '{{Native |np=8 |p1t=Integer |p1d=Char Handle |p2t=Integer |p2d=Vehicle Handle |p3t=Integer |p3d=Target Char Handle |p4t=Integer |p4d=Unknown (seems to be "4") |p5t=Float |p5d=Dri…') |
Impediment (talk | contribs) m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
|p3d=Target Char Handle | |p3d=Target Char Handle | ||
|p4t=Integer | |p4t=Integer | ||
− | |p4d= | + | |p4d=Flags |
|p5t=Float | |p5t=Float | ||
− | |p5d=Driving | + | |p5d=Driving speed (Meters per second) |
|p6t=Integer | |p6t=Integer | ||
− | |p6d= | + | |p6d=Driving style |
|p7t=Integer | |p7t=Integer | ||
− | |p7d= | + | |p7d=Distance from target at which to stop (Flag 4 must be specified) |
|p8t=Integer | |p8t=Integer | ||
|p8d=Unknown (seems to be "10") | |p8d=Unknown (seems to be "10") | ||
Line 20: | Line 20: | ||
− | 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 | + | 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.'' | ||
+ | {| {{Prettytable}} | ||
+ | |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. | ||
+ | |} | ||
Line 28: | Line 48: | ||
|Integer | |Integer | ||
|Description | |Description | ||
+ | |- | ||
+ | |0 | ||
+ | |Normal driving, stop for traffic lights | ||
|- | |- | ||
|1 | |1 | ||
− | | | + | |Stop for lights, stays in lane (appears to be same as "0") |
|- | |- | ||
|2 | |2 | ||
− | |Ignore traffic | + | |Ignore traffic, drive around |
+ | |- | ||
+ | |3 | ||
+ | |Ignore traffic, stay in lane | ||
+ | |- | ||
+ | |4 | ||
+ | |Normal driving, ignore traffic lights | ||
|} | |} |
Latest revision as of 13:27, 7 September 2011
Number of parameters: 8 | ||
---|---|---|
Parameter # | Type | Description |
1. | Integer | Char Handle |
2. | Integer | Vehicle Handle |
3. | Integer | Target Char Handle |
4. | Integer | Flags |
5. | Float | Driving speed (Meters per second) |
6. | Integer | Driving style |
7. | Integer | Distance from target at which to stop (Flag 4 must be specified) |
8. | Integer | Unknown (seems to be "10") |
Return value: | ||
Type | Description | |
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 | Stop for lights, stays in lane (appears to be same as "0") |
2 | Ignore traffic, drive around |
3 | Ignore traffic, stay in lane |
4 | Normal driving, ignore traffic lights |