If your pawn is a character, you already have IsFalling variable inside character movement. If not, here’s how I’d do it.
- On hit, if impact normal Z == 1, set grounded to true
- After that, add a delay (0.1s) and set it back to false. This way, delay will be called constantly and if hit stops firing, the delay will finish.
Hopefully this helps, cheers!