Change player's gravity

Hi everyone !

I’m wondering how could I change the gravity of my character by pressing an input ?

I’m really newbie in Blueprint scripting, and after many researches, I didn’t find a clear answer to my question. I would appreciate some help. :slight_smile:
Thanks in advance !

You should be able yo set character gravity in chracter movment component

Indeed I can do that, but this can’t allow me to freely change my gravity while I’m playing. And unfortunately, I can’t find the node “Set gravity scale” on Blueprint to change that. :confused:

Right now you can only change gravity on the Z axis.
It is hardcoded into the engine like that.

There are one or two projects to fix this ongoing though nothing works properly yet.
If you want this working you will have to write your own gravity and set your character as not physics affected. Remember that this will require you to add everything from simple increase of fallspeed the longer you fall to in air, walked over a ledge and so on functions.

This is probably one of Unreals largest weaknesses. The Z gravity.

Argh. Thanks man.