How to stop a function while colliding with the character

If you want to stop the movement forever you can override the hit event (collision) and disable the tick function/set the bool.