Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
TODO: -Implement replicated time so that this can work as a simulated task for Join In Progress clients. Move to a location, ignoring clipping, over a given length of time. Ends when the TargetLocation is reached. This will RESET your character's current movement mode! If you wish to maintain PHYS_Flying or PHYS_Custom, you must reset it on completion.!
| Name | UAbilityTask_MoveToLocation |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_MoveToLocation.h |
| Include Path | #include "Abilities/Tasks/AbilityTask_MoveToLocation.h" |
Syntax
UCLASS (MinimalAPI)
class UAbilityTask_MoveToLocation : public UAbilityTask
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGameplayTask → UAbilityTask → UAbilityTask_MoveToLocation
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UAbilityTask_MoveToLocation
(
const FObjectInitializer& ObjectInitializer |
Abilities/Tasks/AbilityTask_MoveToLocation.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnTargetLocationReached | FMoveToLocationDelegate | Abilities/Tasks/AbilityTask_MoveToLocation.h |
|
Functions
Public
Overridden from UGameplayTask
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Activate() |
Abilities/Tasks/AbilityTask_MoveToLocation.h | ||
virtual void InitSimulatedTask
(
UGameplayTasksComponent& InGameplayTasksComponent |
Abilities/Tasks/AbilityTask_MoveToLocation.h | ||
virtual void OnDestroy
(
bool AbilityIsEnding |
Abilities/Tasks/AbilityTask_MoveToLocation.h | ||
virtual void TickTask
(
float DeltaTime |
Tick function for this task, if bTickingTask == true | Abilities/Tasks/AbilityTask_MoveToLocation.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UAbilityTask_MoveToLocation * MoveToLocation
(
UGameplayAbility* OwningAbility, |
Move to the specified location, using the vector curve (range 0 - 1) if specified, otherwise the float curve (range 0 - 1) or fallback to linear interpolation | Abilities/Tasks/AbilityTask_MoveToLocation.h |
|