Ending a Periodic Cost Effect of an Ability

Hello.

I am using Gameplay Ability System and I have a sprint ability where stamina is consumed periodically, until sprint is ended.

I am using a cost gameplay effect that modifies the sprint periodically and infinitely.

Although, when sprint ends, the cost is still active and attribute is being consumed.

Do I have to end this periodic cost manually on Ability End?

1 Like

Hello,

Surprised no answers on this yet, fairly simple solution. You can add a “Target Tag Requirements Gameplay Effect Component” to your GameplayEffect. Under “Removal Tag Requirements”, set your Sprint ability’s tag (make sure you set one on Activation Owned Tags from your ability) on “Must Not Have Tags”. This will effectively end your infinite GameplayEffect once your ability’s tag is removed from the activation actor.