# \[GAS\] How to know if an Ability was just used ?

**URL:** <https://forums.unrealengine.com/t/gas-how-to-know-if-an-ability-was-just-used/2860868>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [November 23, 2026, 1:27pm UTC](https://forums.unrealengine.com/t/gas-how-to-know-if-an-ability-was-just-used/2860868 "2026-11-23T13:27:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voxiit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/voxiit/32/1217475_2.png) [@Voxiit](https://forums.unrealengine.com/u/Voxiit)\
**Post date:** [November 23, 2026, 1:27pm UTC](https://forums.unrealengine.com/t/gas-how-to-know-if-an-ability-was-just-used/2860868/1 "2026-11-23T13:27:42Z")

</div>

Hi there,

I’m working on an FPS game and I’m using the GAS to handle the traversal. I’ve created an Ability for each type of movement, Walking, Sprinting, Jumping, Crouching, Sliding and Wall Running. That way it’s easier for me to handle which traversal mechanics can be triggered at a certain time (I don’t want the player to enter Slide from a Wall Run for example).

However I’m facing an issue and I can’t find a proper solution for it.  
I want to do a specific Jump if the player is Wall Running. I want him to jump on the side and not just straight up to give the illusion that the player is jumping from the wall.  
My issue is that, if the player wants to exit a Wall Run by Jumping, **there’s no way for me when the Jump starts to know if the player was Wall Running in the previous frame.**

When the player Jumps, the Jump Ability will cancel the Wall Run Ability (here is a screen of my Jump Ability Tags).

 ![JumpAbility](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/9/3795186f26746adda936cf50e63975c8f9f2407c.png)

By doing so, when entering the `ActivateAbility` function inside my Jump Ability, the Wall Run Ability won’t be active anymore.  
I’ve seen that when the `CanActivateAbility` could be a potential fit if the function wasn’t const, since when this function is called the Wall Run Ability is still active. I could have save this information here.

I don’t know how to properly gather this information by using only the GAS. Do you have any idea or suggestions ?

Thanks in advance!
