UAbilityTask_StartAbilityState::StartAbilityState

Starts a new ability state.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "Abilities/Tasks/AbilityTask_StartAbilityState.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/Tasks/AbilityTask_StartAbilityState.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable,
          Meta=(HidePin="OwningAbility", DefaultToSelf="OwningAbility", BlueprintInternalUseOnly="true", HideSpawnParms="Instigator"),
          Category="Ability|Tasks")
static UAbilityTask_StartAbilityState * StartAbilityState
(
    UGameplayAbility * OwningAbility,
    FName StateName,
    bool bEndCurrentState
)

Remarks

Starts a new ability state.

Parameters

Parameter

Description

StateName

The name of the state.

bEndCurrentState

If true, all other active ability states will be ended.

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