Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Tasks
Inheritance Hierarchy
- UObject
- IGameplayTaskOwnerInterface
- UGameplayTask
- UAbilityTask
- UAbilityTask_WaitInputPress
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 ()
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
| Type | Name | Description | |
|---|---|---|---|
| bool | bTestInitialState | ||
| FDelegateHandle | DelegateHandle | ||
| FInputPressDelegate | OnPress | ||
| float | StartTime |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAbilityTask_WaitInputPress
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| UAbilityTask_WaitInputPress * | WaitInputPress
(
UGameplayAbility* OwningAbility, |
Wait until the user presses the input button for this ability's activation. |
Overridden from UGameplayTask
| Type | Name | Description | |
|---|---|---|---|
| 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 |