UAbilityTask_WaitInputPress

Waits until the input is pressed from activating an ability.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GameplayAbilities

Header

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

Include

#include "Abilities/Tasks/AbilityTask_WaitInputPress.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UAbilityTask_WaitInputPress : public UAbilityTask

Remarks

Waits until the input is pressed from activating an ability. This should be true immediately upon starting the ability, since the key was pressed to activate it. We expect server to execute this task in parallel and keep its own time. We do not keep track of

Variables

Name Description

Protected variable

bool

 

bTestInitialState

Protected variable

FDelegateHandle

 

DelegateHandle

Public variable UProperty BlueprintAssignable

FInputPressDele ...

 

OnPress

Protected variable

float

 

StartTime

Constructors

Name Description

Public function

UAbilityTask_WaitInputPress

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function UFunction

void

 

OnPressCallback()

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask ...

 

WaitInputPress

(
    UGameplayAbility * OwningAbilit...,
    bool bTestAlreadyPressed
)

Wait until the user presses the input button for this ability's activation.

Overridden from UGameplayTask

Name Description

Public function Virtual

void

 

Activate()

Called to trigger the actual task once the delegates have been set up Note that the default implementation does nothing and you don't have to call it

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