UAbilityTask_ApplyRootMotionMoveToForce

Applies force to character's movement

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_ApplyRootMotionMoveToForce.h

Include

#include "Abilities/Tasks/AbilityTask_ApplyRootMotionMoveToForce.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UAbilityTask_ApplyRootMotionMoveToForce : public UAbilityTask_ApplyRootMotion_Base

Remarks

Applies force to character's movement

Variables

Name Description

Protected variable UProperty Replicated

bool

 

bRestrictSpeedToExpected

If enabled, we limit velocity to the initial expected velocity to go distance to the target over Duration.

Protected variable UProperty Replicated

bool

 

bSetNewMovementMode

Protected variable UProperty Replicated

float

 

Duration

Protected variable UProperty Replicated

TEnumAsByte< EM...

 

NewMovementMode

Public variable UProperty BlueprintAssignable

FApplyRootMotio...

 

OnTimedOut

Public variable UProperty BlueprintAssignable

FApplyRootMotio...

 

OnTimedOutAndDestinationReached

Protected variable UProperty Replicated

UCurveVector &#...

 

PathOffsetCurve

Protected variable

EMovementMode

 

PreviousMovementMode

Protected variable UProperty Replicated

FVector

 

StartLocation

Protected variable UProperty Replicated

FVector

 

TargetLocation

Constructors

Name Description

Public function

UAbilityTask_ApplyRootMotionMoveToForce

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask...

 

ApplyRootMotionMoveToForce

(
    UGameplayAbility* OwningAbilit...,
    FName TaskInstanceName,
    FVector TargetLocation,
    float Duration,
    bool bSetNewMovementMode,
    EMovementMode MovementMode,
    bool bRestrictSpeedToExpected,
    UCurveVector* PathOffsetCurve,
    ERootMotionFinishVelocityMode Veloc...,
    FVector SetVelocityOnFinish,
    float ClampVelocityOnFinish
)

Apply force to character's movement

Overridden from UAbilityTask_ApplyRootMotion_Base

Name Description

Protected function Virtual

void

 

SharedInitAndApply()

Overridden from UGameplayTask

Name Description

Public function Virtual

void

 

OnDestroy

(
    bool bInOwnerFinished
)

End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending.

Public function Virtual

void

 

TickTask

(
    float DeltaTime
)

Tick function for this task, if bTickingTask == true

Overridden from UObject

Name Description

Public function Virtual

void

 

PreDestroyFromReplication()

Called right before being marked for destruction due to network replication

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss