UAbilitySystemBlueprintLibrary::SendGameplayEventToActor

This function can be used to trigger an ability on the actor in question with useful payload data.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemBlueprintLibrary.h

Include

#include "AbilitySystemBlueprintLibrary.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemBlueprintLibrary.cpp

Syntax

[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
)

Remarks

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.

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