How to program gravity for a pawn class with C++

I don’t know how to make booleans into floats.

Also, Enchanted inputs are something new for me. Should I create them in content browser like a blueprint?