You may want to change your players gravity, or air control in Unreal Engine. Today, I will be telling you how to set the default values for these, and also how you can change them while the game is going, for example if I press a key on my keyboard the gravity is low, but another button makes high gravity.

To get started, you need to open your player character. The settings we are going to set can be set for any blueprint player, even one you make from scratch. Open the viewport tab, and on the left, you will see a list of components in your player. Press on the bottom idem called “CharacterMovement”. This will have the settings for many things about your player’s movement. You can set air control, and gravity scale here. These will be the default values for these things. Next, I am going to tell you how you can change these when the game is running.

For this example, I am going to make my j key make low gravity, and and i key make high air control. I will open my level blueprint and get the j key pressed event. First cast to your player (for me third person character). Get player character as the object for the cast. Next, right click to search, and uncheck the context sensitive box, then search for set gravity scale, or air control, depending on what you want to set. As your player (for me, third person character), search for get character movement, and keep the box unchecked. You may need to scroll to the top of the search field to find the correct node. Hook that into the target of set gravity scale or air control. That’s all! Now on the event you want, you can set your player’s gravity or air control!

If you have any questions, let me know!

Leave a Reply

Your email address will not be published. Required fields are marked *