Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TaskFollowPointRoute.md #943

Merged
merged 8 commits into from
Aug 7, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions TASK/TaskFollowPointRoute.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ ns: TASK

```c
// 0x595583281858626E 0xB837C816
void TASK_FOLLOW_POINT_ROUTE(Ped ped, float speed, int unknown);
void TASK_FOLLOW_POINT_ROUTE(Ped ped, float speed, int mode);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

routeMode would be a better name

```
### Flags
Wetter42 marked this conversation as resolved.
Show resolved Hide resolved
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved
c // ENUM FOLLOWPOINTROUTEMODE {
TICKET_SINGLE=0, //Stop at the end of the route
TICKET_RETURN=1, //Go once then return back once following the route backwards
TICKET_SEASON=2, //As above but for forever
TICKET_LOOP=3 //Treat the points as a loop, i.e follow it to the end then directly back to the first position, forever.
ENDENUM}

```
MulleKD19: Makes the ped go on the created point route.
Expand All @@ -24,5 +31,5 @@ TASK_FOLLOW_POINT_ROUTE(GET_PLAYER_PED(), 1f, 0);
## Parameters
* **ped**: The ped to give the task to.
* **speed**: The speed to move at in m/s.
* **unknown**: Unknown. Can be 0, 1, 2 or 3.
* **mode**: Can be 0, 1, 2 or 3. See flags

Loading