Hello, I want to make a GAS ability which toggles on and off with the same key press. Right now, I have a GE that applies a Tag when activated. When I press key again, if actor has that tag, it removes that GE, thereby removing that tag… but I can’t get the removing part to work. It should be very simple logic if I do it with a bool variable instead…
Anyone know why this doesn’t work?
The current ability I want is just crouch. Press to crouch, press same key to uncrouch. My ABP checks for the TAG and updates accordingly. My character crouches fine, but cannot uncrouch.
You usually cannot retrigger the same ability unless you call EndAbility. After you crouch you set the handle but do not end the ability so it cannot be triggered again (again, usually).
After you add the End Ability node to the other branch it should work but another thing to try is simply adding a replicated Loose Gameplay Tag to your Ability System Component instead of a gameplay effect.