// TaskGotoEntityOffset
void TASK_GOTO_ENTITY_OFFSET(Ped ped, Entity entity, int duration, float seekRadius, float seekAngleDeg, float moveBlendRatio, int gotoEntityOffsetFlags);
Parameters:- 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
Instructs the ped to go to the entity with the given offset.
enum eSeekEntityOffsetFlags {
ESEEK_OFFSET_ORIENTATES_WITH_ENTITY = 1,
ESEEK_KEEP_TO_PAVEMENTS = 2
};