Difference between revisions of "TASK FOLLOW NAV MESH AND SLIDE TO COORD"
Jump to navigation
Jump to search
(Created page with "{{Native |np = 8 |p1t = integer |p1d = Ped handle |p2t = float |p2d = X coordinate |p3t = float |p3d = Y coordinate |p4t = float |p4d...") |
|||
Line 20: | Line 20: | ||
Similar to [[TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP]] and [[TASK_FOLLOW_NAV_MESH_TO_COORD]], but '''combined''' with [[TASK_CHAR_SLIDE_TO_COORD]]. <br/> | Similar to [[TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP]] and [[TASK_FOLLOW_NAV_MESH_TO_COORD]], but '''combined''' with [[TASK_CHAR_SLIDE_TO_COORD]]. <br/> | ||
− | '''Parameter | + | '''Parameter 7''' is a radius of point (p2,p3,p4) (-1 makes ped (p1) follow ''straight at point'').<br/> |
− | '''Parameter | + | '''Parameter 8''' is a heading at the point (p2,p3,p4). ''Also you can use -1 for spin ped clockwise the end-point''<br/> |
+ | |||
+ | ---- | ||
+ | |||
+ | '''Note:''' Ped start to slide at coords when he reach the ''point+radius'' ((p2,p3,p4)+p7) |
Revision as of 04:21, 21 March 2015
Number of parameters: 8 | ||
---|---|---|
Parameter # | Type | Description |
1. | integer | Ped handle |
2. | float | X coordinate |
3. | float | Y coordinate |
4. | float | Z coordinate |
5. | integer | Movement type (2 = walk, 3 = jog, 4 = run) |
6. | float | Unknown (seems to be -2) |
7. | float | Radius of point |
8. | float | Heading angle |
Return value: | ||
Type | Description | |
None |
Similar to TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP and TASK_FOLLOW_NAV_MESH_TO_COORD, but combined with TASK_CHAR_SLIDE_TO_COORD.
Parameter 7 is a radius of point (p2,p3,p4) (-1 makes ped (p1) follow straight at point).
Parameter 8 is a heading at the point (p2,p3,p4). Also you can use -1 for spin ped clockwise the end-point
Note: Ped start to slide at coords when he reach the point+radius ((p2,p3,p4)+p7)