Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/FActiveGameplayEffectsContainer
Description
- Predictively execute a given effect spec. Any attribute modifications and effect execution calculations in the effect will run and then if desired predict gameplay cues
-
This method will not predictively run any conditional effects that may be set up in the effect that apply post execution and will only happen if/when this spec is applied on the server.
-
WARNING: This will locally perform attribute changes on your client so beware.
| Name | PredictivelyExecuteEffectSpec |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
| Include Path | #include "GameplayEffect.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffect.cpp |
void PredictivelyExecuteEffectSpec
(
FGameplayEffectSpec & Spec,
FPredictionKey PredictionKey,
const bool bPredictGameplayCues
)