FPedTasks
Represents the tasks of a FPed.
Methods
AchieveHeading
Invokes the "ped.Task.AchieveHeading" native.
Parameters
| Name | Type | Description |
|---|---|---|
| heading | float | The heading. |
| timeout | int | The timeout. |
AimAt
Invokes the "ped.Task.AimAt" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Vector3 | The target. |
| duration | int | The duration. |
Arrest
Invokes the "ped.Task.Arrest" native.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped. |
ChaseWithGroundVehicle
Invokes the "ped.Task.ChaseWithGroundVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Entity | The target. |
ChaseWithHelicopter
Invokes the "ped.Task.ChaseWithHelicopter" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Entity | The target. |
| offset | Vector3 | The offset. |
ChaseWithPlane
Invokes the "ped.Task.ChaseWithPlane" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Entity | The target. |
| offset | Vector3 | The offset. |
ChatTo
Invokes the "ped.Task.ChatTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped. |
ClearAll
Invokes the "ped.Task.ClearAll" native.
ClearAllImmediately
Invokes the "ped.Task.ClearAllImmediately" native.
ClearAnimation
Invokes the "ped.Task.ClearAnimation" native.
Parameters
| Name | Type | Description |
|---|---|---|
| animSet | string | The anim set. |
| animName | string | The anim name. |
ClearLookAt
Invokes the "ped.Task.ClearLookAt" native.
ClearSecondary
Invokes the "ped.Task.ClearSecondary" native.
Climb
Invokes the "ped.Task.Climb" native.
ClimbLadder
Invokes the "ped.Task.ClimbLadder" native.
Cower
Invokes the "ped.Task.Cower" native.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | int | The duration. |
CruiseWithVehicle
Invokes the "ped.Task.CruiseWithVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |
| speed | float | The speed. |
| drivingstyle | int | The drivingstyle. |
DriveTo
Invokes the "ped.Task.DriveTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle to drive. |
| target | Vector3 | The location to drive to. |
| radius | float | The radius. |
| speed | float | The speed. |
| drivingStyle | int | The driving style flag. |
EnterAnyVehicle
Invokes the "ped.Task.EnterAnyVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| seat | FVehicleSeat | The seat. |
| timeout | int | The timeout. |
| speed | float | The speed. |
| flag | int | The flag. |
EnterVehicle
Invokes the "ped.Task.EnterVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |
| seat | FVehicleSeat | The seat. |
| timeout | int | The timeout. |
| speed | float | The speed. |
| flag | int | The flag. |
FightAgainst
Invokes the "ped.Task.FightAgainst" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Ped | The target. |
| duration | int | The duration. |
FightAgainstHatedTargets
Invokes the "ped.Task.FightAgainstHatedTargets" native.
Parameters
| Name | Type | Description |
|---|---|---|
| radius | float | The radius. |
| duration | int | The duration. |
FleeFrom
Invokes the "ped.Task.FleeFrom" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
| duration | int | The duration. |
FollowPointRoute
Invokes the "ped.Task.FollowPointRoute" native.
Parameters
| Name | Type | Description |
|---|---|---|
| points | IEnumerable<Vector3> | The points. |
FollowToOffsetFromEntity
Invokes the "ped.Task.FollowToOffsetFromEntity" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Entity | The target. |
| offset | Vector3 | The offset. |
| movementSpeed | float | The movementSpeed. |
| timeout | int | The timeout. |
| stoppingRange | float | The stoppingRange. |
| persistFollowing | bool | The persistFollowing. |
GoTo
Invokes the "ped.Task.GoTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Entity | The target. |
GoTo
Invokes the "ped.Task.GoTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Entity | The target. |
| offset | Vector3 | The offset. |
| timeout | int | The timeout. |
GoTo
Invokes the "ped.Task.GoTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
| ignorePaths | bool | The ignorePaths. |
| timeout | int | The timeout. |
GuardCurrentPosition
Invokes the "ped.Task.GuardCurrentPosition" native.
HandsUp
Invokes the "ped.Task.HandsUp" native.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | int | The duration. |
Jump
Invokes the "ped.Task.Jump" native.
LeaveVehicle
Invokes the "ped.Task.LeaveVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| flags | FLeaveVehicleFlags | The flags. |
LeaveVehicle
Invokes the "ped.Task.LeaveVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |
| flags | FLeaveVehicleFlags | The flags. |
LeaveVehicle
Invokes the "ped.Task.LeaveVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |
| closeDoor | bool | The closeDoor. |
LookAt
Invokes the "ped.Task.LookAt" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Entity | The target. |
| duration | int | The duration. |
LookAt
Invokes the "ped.Task.LookAt" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
| duration | int | The duration. |
ParachuteTo
Invokes the "ped.Task.ParachuteTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
ParkVehicle
Invokes the "ped.Task.ParkVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |
| position | Vector3 | The position. |
| heading | float | The heading. |
| radius | float | The radius. |
| keepEngineOn | bool | The keepEngineOn. |
PlayAnimation
Invokes the "ped.Task.PlayAnimation" native.
Parameters
| Name | Type | Description |
|---|---|---|
| animDict | string | The animDict. |
| animName | string | The animName. |
PlayAnimation
Invokes the "ped.Task.PlayAnimation" native.
Parameters
| Name | Type | Description |
|---|---|---|
| animDict | string | The animDict. |
| animName | string | The animName. |
| blendInSpeed | float | The blendInSpeed. |
| duration | int | The duration. |
| flags | FAnimationFlags | The flags. |
PlayAnimation
Invokes the "ped.Task.PlayAnimation" native.
Parameters
| Name | Type | Description |
|---|---|---|
| animDict | string | The animDict. |
| animName | string | The animName. |
| speed | float | The speed. |
| duration | int | The duration. |
| playbackRate | float | The playbackRate. |
PlayAnimation
Invokes the "ped.Task.PlayAnimation" native.
Parameters
| Name | Type | Description |
|---|---|---|
| animDict | string | The animDict. |
| animName | string | The animName. |
| blendInSpeed | float | The blendInSpeed. |
| blendOutSpeed | float | The blendOutSpeed. |
| duration | int | The duration. |
| flags | FAnimationFlags | The flags. |
| playbackRate | float | The playbackRate. |
PutAwayMobilePhone
Invokes the "ped.Task.PutAwayMobilePhone" native.
PutAwayParachute
Invokes the "ped.Task.PutAwayParachute" native.
ReactAndFlee
Invokes the "ped.Task.ReactAndFlee" native.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped. |
ReloadWeapon
Invokes the "ped.Task.ReloadWeapon" native.
RunTo
Invokes the "ped.Task.RunTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
| ignorePaths | bool | The ignorePaths. |
| timeout | int | The timeout. |
ShootAt
Invokes the "ped.Task.ShootAt" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Ped | The target. |
| duration | int | The duration. |
| pattern | FFiringPattern | The pattern. |
ShootAt
Invokes the "ped.Task.ShootAt" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
| duration | int | The duration. |
| pattern | FFiringPattern | The pattern. |
ShuffleToNextVehicleSeat
Invokes the "ped.Task.ShuffleToNextVehicleSeat" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |
Skydive
Invokes the "ped.Task.Skydive" native.
SlideTo
Invokes the "ped.Task.ShuffleToNextVehicleSeat" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
| heading | float | The heading. |
StandStill
Invokes the "ped.Task.StandStill" native.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | int | The duration. |
StartScenario
Invokes the "ped.Task.StartScenario" native.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The name. |
| position | Vector3 | The position. |
SwapWeapon
Invokes the "ped.Task.SwapWeapon" native.
TurnTo
Invokes the "ped.Task.TurnTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| entity | Entity | The |
| duration | int | The duration. |
TurnTo
Invokes the "ped.Task.TurnTo" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The |
| duration | int | The duration. |
UseMobilePhone
Invokes the "ped.Task.UseMobilePhone" native.
UseMobilePhone
Invokes the "ped.Task.UseMobilePhone" native.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | int | The duration. |
UseParachute
Invokes the "ped.Task.UseParachute" native.
VehicleChase
Invokes the "ped.Task.VehicleChase" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Ped | The target. |
VehicleShootAtPed
Invokes the "ped.Task.VehicleShootAtPed" native.
Parameters
| Name | Type | Description |
|---|---|---|
| target | Ped | The target. |
Wait
Invokes the "ped.Task.Wait" native.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | int | The duration. |
WanderAround
Invokes the "ped.Task.WanderAround" native.
WanderAround
Invokes the "ped.Task.WanderAround" native.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3 | The position. |
| radius | float | The radius. |
WarpIntoVehicle
Invokes the "ped.Task.WarpIntoVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |
| seat | FVehicleSeat | The seat. |
WarpOutOfVehicle
Invokes the "ped.Task.WarpOutOfVehicle" native.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle. |