I am struggling to figure how I should do this. In my game, once the player is hit, he takes some knockback. I want to constantly check if the velocity is 0 right after he takes the knockback to execute a function when that happens. I tried using a while loop, but it ended up crashing the game (as expected…). How should I approach this issue? Is my only option to set this up in the tick function? As another example, I want something to happen as soon as the player touches the ground after jumping. I would like to, as soon as the player jumps, constantly check the value of IsFalling(). How can I do this?
Thank you! Any help is appreciated.