Y axis forces removed

Hello! I’m getting a dash set up, and everything is working, except I would like all y axis forces to stop during the dash (this way no one can exploit it vertically). Is there a way to stop the object, but only on the y axis? All I can find is something that removes all forces.

If your Object is a Platformer you can try to set the gravity to 0 when the player is on Dash then when the dash finish you set the gravity to 980 or wherever you like.
This way the player will not fall during dash

I already have it set to 0 during the dash, but that doesn’t stop any jumping forces, either up or down when I dash that were already present before dash was pushed unfortunately.

I have decided to just only allow dash when not jumping. Would still like to know if anyone knows a way (for future reference). But not necessary anymore.