Ability System Component - Delegates
OnGameplayEffectAppliedDelegateToSelf
This DECLARE_MULTICAST_DELEGATE_ThreeParams delegate is called called on the server whenever a GE is applied to self. This includes instant and duration based GEs. The following three parameters are passed:
UAbilitySystemComponent* Source, const FGameplayEffectSpec& SpecApplied, FActiveGameplayEffectHandle ActiveHandle
OnGameplayEffectAppliedDelegateToTarget
This multicast delegate is called when called on the server whenever a GE is applied to someone else. This includes instant and duration based GEs. The following three parameters are passed:
UAbilitySystemComponent* Target, const FGameplayEffectSpec& SpecApplied, FActiveGameplayEffectHandle ActiveHandle
OnActiveGameplayEffectAddedDelegateToSelf
This multicast delegate is called on both the client and server whenever a duration based GE is added (E.g., instant GEs do not trigger this).
OnPeriodicGameplayEffectExecuteDelegateOnTarget
This multicast delegate is called on the server whenever a periodic GE executes on a target. The following three parameters are passed:
UAbilitySystemComponent* Target, const FGameplayEffectSpec& SpecExecuted, FActiveGameplayEffectHandle ActiveHandle
OnPeriodicGameplayEffectExecuteDelegateOnSelf
This multicast delegate is called on the server whenever a periodic GE executes on self. The following three parameters are passed:
UAbilitySystemComponent* Source, const FGameplayEffectSpec& SpecExecuted, FActiveGameplayEffectHandle ActiveHandle
GetGameplayAttributeValueChangeDelegate
Register for when an attribute value changes.
OnGameplayEffectTimeChangeDelegate
OnGameplayEffectStackChangeDelegate
OnGameplayEffectRemovedDelegate
OnImmunityBlockGameplayEffectDelegate
This multicastDECLARE_MULTICAST_DELEGATE_TwoParams delegate is called when a Gameplay Effect is blocked due to immunity.
const FGameplayEffectSpec& /*BlockedSpec*/, const FActiveGameplayEffect* /*ImmunityGameplayEffect*/
AbilityActivatedCallbacks
This multicast delegate is called when an ability is activated.
AbilityEndedCallbacks
This DECLARE_MULTICAST_DELEGATE_OneParam delegate is called when an ability has ended.
UGameplayAbility*
AbilityCommittedCallbacks
This multicast delegate is called anytime an ability is committed (cost/cooldown applied).
AbilityFailedCallbacks
This DECLARE_MULTICAST_DELEGATE_TwoParams delegate is called when ability fails to activate, passes along the failed ability and a tag explaining why.
const UGameplayAbility*, const FGameplayTagContainer&
AbilitySpecDirtiedCallbacks
This DECLARE_MULTICAST_DELEGATE_OneParam delegate is called when an ability spec's internals have changed. A ref to the ability spec is provided:
const FGameplayAbilitySpec&