# Gameplay Cue and Periodic Effect Issue

**URL:** <https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Gameplay-Ability-System, question\
**Created:** [December 7, 2022, 4:21am UTC](https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075 "2022-12-07T04:21:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbourgeault\_bhvr1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jbourgeault\_bhvr1](https://forums.unrealengine.com/u/jbourgeault_bhvr1)\
**Post date:** [December 7, 2022, 4:21am UTC](https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075/1 "2022-12-07T04:21:33Z")

</div>

Hi,  
There seem to be an issue with gameplay cues invoked by periodic effects with duration on clients.

Here’s how to reproduce it assuming a setup with players each with an ability system set in mixed replication mode.

- Create a new gameplay effect with a fixed duration and a period.
- Make this gameplay effect apply a gameplay cue (AGameplayCue\_ActorNotify).
- Make the gameplay cue applied by the effect log in the WhileActive and OnRemove functions. (Anything to show the methods are called or not) and make sure Auto Destroy On Remove is set.
- Start the game in listen server with 2 players.
- Make the host apply the gameplay effect to itself.
- Notice that WhileActive is called on both the client and the server, but OnRemove is called right after and constantly while the effect is active on the client instead of just when the effect stops.

This change seems to be related to the fix made for [UE-153981](https://issues.unrealengine.com/issue/UE-153981). Reverting that change seems to fix the issue.

Anyone else has encountered this issue?

---

<div class="post-metadata">

**Author:** ![TheDogtoy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheDogtoy](https://forums.unrealengine.com/u/TheDogtoy)\
**Post date:** [March 8, 2023, 3:24am UTC](https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075/2 "2023-03-08T03:24:22Z")

</div>

I’ve noticed the same thing, not fixed in 5.1.1

---

<div class="post-metadata">

**Author:** ![eskeltron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eskeltron](https://forums.unrealengine.com/u/eskeltron)\
**Post date:** [March 17, 2023, 10:59pm UTC](https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075/3 "2023-03-17T22:59:51Z")

</div>

I’m facing the same issue.

If you change ASC Replication Mode from **Mixed** to **Full** it works well.

Maybe we are missing something…

---

<div class="post-metadata">

**Author:** ![Zythiku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zythiku](https://forums.unrealengine.com/u/Zythiku)\
**Post date:** [March 24, 2023, 3:21pm UTC](https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075/4 "2023-03-24T15:21:15Z")

</div>

```auto
CueParameters.bGameplayEffectActive = Spec.Def->DurationPolicy == EGameplayEffectDurationType::Instant || ActiveGameplayEffects.GetActiveEffectCount(EffectQuery) > 0;

```

Looks like it might be this line that breaks it. If you aren’t set to Full Replication Mode ActiveGameplayEffects will always be 0 (since gameplay effects are not replicated) and the client will think the cue should be removed right away

---

<div class="post-metadata">

**Author:** ![Jay.Butler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jay.Butler](https://forums.unrealengine.com/u/Jay.Butler)\
**Post date:** [October 9, 2024, 8:34am UTC](https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075/5 "2024-10-09T08:34:10Z")

</div>

Still an issue in 5.4.4… “Full” replication fixes.

---

<div class="post-metadata">

**Author:** ![Wanjoun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wanjoun](https://forums.unrealengine.com/u/Wanjoun)\
**Post date:** [June 26, 2025, 8:32am UTC](https://forums.unrealengine.com/t/gameplay-cue-and-periodic-effect-issue/723075/6 "2025-06-26T08:32:12Z")

</div>

Still exists in ue5.5, is there any way to modify it? Not using ‘Full’
