Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemBlueprintLibrary.h |
Include |
#include "AbilitySystemBlueprintLibrary.h" |
Source |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemBlueprintLibrary.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category=Ability,
Meta=(ToolTip="This function can be used to trigger an ability on the actor in question with useful payload data."))
static void SendGameplayEventToActor
(
AActor * Actor,
FGameplayTag EventTag,
FGameplayEventData Payload
)
This function can be used to trigger an ability on the actor in question with useful payload data.
The Actor passed in must implement IAbilitySystemInterface! or else this function will silently fail to send the event. The actor needs the interface to find the UAbilitySystemComponent, and if the component isn't found, the event will not be sent.