Skip to content

Commit

Permalink
Update TaskGotoEntityOffset and TaskGotoEntityOffsetXY
Browse files Browse the repository at this point in the history
  • Loading branch information
coalaura committed Dec 17, 2024
1 parent 9ad5de1 commit 17f8a74
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
24 changes: 16 additions & 8 deletions TASK/TaskGotoEntityOffset.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@ ns: TASK

```c
// 0xE39B4FF4FDEBDE27 0x1A17A85E
void TASK_GOTO_ENTITY_OFFSET(Ped ped, Any p1, Any p2, float x, float y, float z, int duration);
void TASK_GOTO_ENTITY_OFFSET(Ped ped, cs_type(Any) Entity entity, cs_type(Any) int duration, float seekRadius, float seekAngleDeg, float moveBlendRatio, int gotoEntityOffsetFlags);
```
Instructs the ped to go to the entity with the given offset.
```cpp
enum eSeekEntityOffsetFlags {
ESEEK_OFFSET_ORIENTATES_WITH_ENTITY = 1,
ESEEK_KEEP_TO_PAVEMENTS = 2
};
```

## Parameters
* **ped**:
* **p1**:
* **p2**:
* **x**:
* **y**:
* **z**:
* **duration**:
* **ped**: The ped handle
* **entity**: The target entity handle
* **duration**: The duration in seconds or -1 for forever
* **seekRadius**: How many meters the destination is from the entity
* **seekAngleDeg**: The angle the destination is from the entity
* **moveBlendRatio**: The move blend ratio (speed)
* **gotoEntityOffsetFlags**: The goto entity offset flags

19 changes: 10 additions & 9 deletions TASK/TaskGotoEntityOffsetXy.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ ns: TASK

```c
// 0x338E7EF52B6095A9 0xBC1E3D0A
void TASK_GOTO_ENTITY_OFFSET_XY(Ped ped, Entity entity, int duration, float xOffset, float yOffset, float zOffset, float moveBlendRatio, BOOL useNavmesh);
void TASK_GOTO_ENTITY_OFFSET_XY(Ped ped, Entity entity, int duration, float targetRadius, float offsetX, float offsetY, float moveBlendRatio, cs_type(BOOL) int gotoEntityOffsetFlags);
```
Instructs the ped to go to the entity with the given offset.
## Parameters
* **ped**:
* **entity**:
* **duration**:
* **xOffset**:
* **yOffset**:
* **zOffset**:
* **moveBlendRatio**:
* **useNavmesh**:
* **ped**: The ped handle
* **entity**: The target entity handle
* **duration**: The duration in seconds or -1 for forever
* **targetRadius**: How far away the ped needs to be from the target entity before it starts moving
* **offsetX**: The X offset
* **offsetY**: The Y offset
* **moveBlendRatio**: The move blend ratio (speed)
* **gotoEntityOffsetFlags**: The goto entity offset flags (see [`TASK_GOTO_ENTITY_OFFSET`](#_0xE39B4FF4FDEBDE27))

0 comments on commit 17f8a74

Please sign in to comment.