How to stop a function while colliding with the character

Oh, so the character (pawn I suppose) does not generate the overlap event with the platform.
Try to play with the collision preset of the platform/pawn.