While working on my current project in UE 5.1.1, I discovered that the Gameplay Cue associated with one of my Gameplay Abilities is getting applied twice to the character that activated the ability.
After searching online for a bit, I stumbled across this forum post from last year, created by someone who encountered the same issue in UE 4. It seems that a solution was never found, so I’d like to see if anyone has discovered anything since that previous post.
Sadly, checking “Execute Periodic Effect on Application” false had no effect.
I looked at the sample project from tranek’s GASDocumentation for ideas. In there, a Gameplay Cue is manually applied for the Sprint ability instead of being automatically applied when the Gameplay Effect is added. I tried the same thing in my project and indeed, the Gameplay Cue is only applied once, but this doesn’t work well for duration-based effects like buffs. You’d have to keep close track of the duration, then manually remove the effect and cue when the duration ends.
I’ll just chalk this up to me not knowing what I’m doing, but the gameplay cue is still getting applied twice for me
I created a server-only event in the gameplay ability, that applies the effect with a gameplay cue connected. That’s currently the only way I know how to only do something on the server. How did you go about doing it?
That totally makes sense, thanks! Unfortunately, there seems to be something else wrong in my case because the cue is still being added twice. I’ve tried both of these:
If your game is single player, make sure your AbilitySystemComponent (ASC) replication mode is set to full.
This is the intended replication mode for single player games, as stated on Traneks GASDocumentation.