Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UGameplayEffectComponent
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectComponent.h |
| Include | #include "GameplayEffectComponent.h" |
virtual void OnGameplayEffectExecuted
(
FActiveGameplayEffectsContainer & ActiveGEContainer,
FGameplayEffectSpec & GESpec,
FPredictionKey & PredictionKey
) const
Remarks
Called when a Gameplay Effect is executed. GE's can only Execute on ROLE_Authority. GE's only Execute when they're applying an instant effect (otherwise they're added to the ActiveGameplayEffectsContainer). Note: Periodic effects Execute every period (and are also added to ActiveGameplayEffectsContainer). One may think of this as periodically executing an instant effect (and thus can only happen on the server).