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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback