UAbilityTask_ApplyRootMotionRadialForce

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_ApplyRootMotionRadialForce.h

Include

#include "Abilities/Tasks/AbilityTask_ApplyRootMotionRadialForce.h"

Syntax

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

Remarks

Applies force to character's movement

Variables

Name Description

Protected variable UProperty Replicated

bool

 

bIsAdditive

Protected variable UProperty Replicated

bool

 

bIsPush

Protected variable UProperty Replicated

bool

 

bNoZForce

Protected variable UProperty Replicated

bool

 

bUseFixedWorldDirection

Protected variable UProperty Replicated

float

 

Duration

Protected variable UProperty Replicated

FRotator

 

FixedWorldDirection

Protected variable UProperty Replicated

FVector

 

Location

Protected variable UProperty Replicated

AActor *

 

LocationActor

Public variable UProperty BlueprintAssignable

FApplyRootMotio ...

 

OnFinish

Protected variable UProperty Replicated

float

 

Radius

Protected variable UProperty Replicated

float

 

Strength

Protected variable UProperty Replicated

UCurveFloat ...

 

StrengthDistanceFalloff

Strength of the force over distance to Location Curve Y is 0 to 1 which is percent of full Strength parameter to apply Curve X is 0 to 1 normalized distance (0 = 0cm, 1 = what Strength % at Radius units out)

Protected variable UProperty Replicated

UCurveFloat ...

 

StrengthOverTime

Strength of the force over time Curve Y is 0 to 1 which is percent of full Strength parameter to apply Curve X is 0 to 1 normalized time if this force has a limited duration (Duration > 0), or is in units of seconds if this force has unlimited duration (Duration < 0)

Constructors

Name Description

Public function

UAbilityTask_ApplyRootMotionRadialForce

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask ...

 

ApplyRootMotionRadialForce

(
    UGameplayAbility * OwningAbilit...,
    FName TaskInstanceName,
    FVector Location,
    AActor * LocationActor,
    float Strength,
    float Duration,
    float Radius,
    bool bIsPush,
    bool bIsAdditive,
    bool bNoZForce,
    UCurveFloat * StrengthDistanceF...,
    UCurveFloat * StrengthOverTime,
    bool bUseFixedWorldDirection,
    FRotator FixedWorldDirection,
    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