GA_Roll/Dodge {{ currentPage ? currentPage.title : "" }}

UGameplayAbility_Roll\UGameplayAbility_Dodge

Purpose: Used for players to perform rapid movements such as rolling and dodging

  • Ability requires setting trigger tags(AbilityTriggers)

  • NetExecutionPolicy Set to ServerInitiated

  • NetSecurityPolicy Set to ServerOnly or ServerOnlyExecution,Do not allow client activation

  • APrimalPlayer Can Override CanRoll、CanDodge

  • Ability needs to be triggered through the server,Can open MotionWarping

  • Execution ability use APrimalPlayer->ServerRoll/ServerDodge

Variable/Function

Explain

CostStats

Cost Stats

bActiveSwimming

Can use in swimming

bActiveGround

Can use on ground

bActiveFlying

Can use in flying

bActiveFalling

Can use in falling

bMotionWarping

Open MotionWarping

MotionWarpingDistance

Motion distortion correction distance, ignoring the movement distance in montage, directly using fixed distance

MotionWarpingName

The name of the motion warp, such as Roll, Dodge, needs to be the same as the motion warp notification settings in Montage

FrontMontage

BackMontage

LeftMontage

RightMontage

Front, rear, left, right, four way montage

CheckMontageValidate(UAnimMontage* Montage)(Unpublic)

Check if the montage is valid (for montages in the ability list)

ApplyEventData(FGameplayEventData* TriggerEventData, FVector Direction, FVector ActorForward, FVector ActorRight)

Application event data for selecting the corresponding montage

{{{ content }}}