Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_WaitTargetData.h |
Include |
#include "Abilities/Tasks/AbilityTask_WaitTargetData.h" |
UCLASS()
class UAbilityTask_WaitTargetData : public UAbilityTask
Wait for targeting actor (spawned from parameter) to provide data. Can be set not to end upon outputting data. Can be ended by task name.
WARNING: These actors are spawned once per ability activation and in their default form are not very efficient For most games you will need to subclass and heavily modify this actor, or you will want to implement similar functions in a game-specific actor or blueprint to avoid actor spawn costs This task is not well tested by internal games, but it is a useful class to look at to learn how target replication occurs
Name | Description | ||
---|---|---|---|
|
Cancelled |
||
|
TEnumAsByte< EG... |
ConfirmationType |
|
|
OnTargetDataReplicatedCallbackDelegateHandle |
||
|
TargetActor |
The TargetActor that we spawned |
|
|
TSubclassOf< AG... |
TargetClass |
|
|
ValidData |
Name | Description | |
---|---|---|
|
UAbilityTask_WaitTargetData ( |
Name | Description | ||
---|---|---|---|
|
BeginSpawningActor ( |
||
|
FinalizeTargetActor ( |
||
|
FinishSpawningActor ( |
||
|
InitializeTargetActor ( |
||
|
OnTargetDataCancelledCallback ( |
The TargetActor we spawned locally has called back with a cancel event (they still include the 'last/best' targetdata but the consumer of this may want to discard it) |
|
|
OnTargetDataReadyCallback ( |
The TargetActor we spawned locally has called back with valid target data |
|
|
OnTargetDataReplicatedCallback ( |
Valid TargetData was replicated to use (we are server, was sent from client) |
|
|
OnTargetDataReplicatedCancelledCallback() |
Client canceled this Targeting Task (we are the server) |
|
|
RegisterTargetDataCallbacks() |
||
|
ShouldReplicateDataToServer() |
||
|
ShouldSpawnTargetActor() |
||
|
UAbilityTask... |
WaitTargetData ( |
Spawns target actor and waits for it to return valid data or to be canceled. |
|
UAbilityTask... |
WaitTargetDataUsingActor ( |
Uses specified target actor and waits for it to return valid data or to be canceled. |
Name | Description | ||
---|---|---|---|
|
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 |
|
|
ExternalCancel() |
Called when the ability is asked to cancel from an outside node. |
|
|
ExternalConfirm ( |
Called when the ability is asked to confirm from an outside node. |
|
|
OnDestroy ( |
End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending. |