Is it possible to change gravity scale of a character via buttons?

Hello!

I am working on something where the player is supposed to be able to change their own gravity by pressing a keyboard button. I got the directional changes to work no problem, but when looking for a gravity scale changing option, there was nothing there.

This post from mentions something about a set gravity scale function, but that doesn’t seem to exist? Or at least it’s not showing up when i search for it. Did it get removed from the engine (I’m using version 5.7.4)? Am I missing something/not looking in the right spot?

Any ideas would be very appreciated.

Set Gravity Scale isn’t exactly a function, per se, but a float var on the character movement component. If you’re not seeing it the possible actions menu, try unticking the context filter, or drag your character movement component into the graph amd drag a wire off it then search.

Should look something like this after plugging them in:

Ohhh yeah, that did it. I didn’t realise unticking the context filter would actually change that much lol. Thank you very much!