TASK_FOLLOW_WAYPOINT_RECORDING
Orders ped to follow a waypoint recording with control over start/end node indices, optional patrol (back-and-forth) behavior,aiming stance, and total traversal duration NOTES:The recording must be requested and loaded using `REQUEST_WAYPOINT_RECORDING`. The indices (startIndex, endIndex) restrict which part of the route is used. patrol controls whether the ped returns to the start after reaching the end. aimWeapon only affects stance — no firing occurs. duration determines total task time before snapping to the end node https://www.youtube.com/watch?v=RIsXDJSmeGU
TASKBuild 1207
Signature
lua
TaskFollowWaypointRecording(PlayerPedId(), waypointRecording, 0, 0, 0, true, true, 0)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Ped | — | |
| char* | — | |
| int | — | |
| int | — | |
| int | — | |
| BOOL | — | |
| BOOL | — | |
| int | — |
Usage
lua
TaskFollowWaypointRecording(PlayerPedId(), waypointRecording, 0, 0, 0, true, true, 0)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Joaat hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
