How To Change Player Gravity At Runtime

Hi,

New to Unreal Engine and my first post. I’m trying to make a game fps platformer that alters the player’s gravity as soon as they land on certain platforms but I’m having trouble. I’ve looked online but have not found a way to implement it in blueprints.

I tried setting the Player’s gravity scale in character movement but nothing has worked.

Perhaps you could show what you’ve tried because setting gravity scale to, let’s say, 0.5 makes the character jump twice as high.

Or maybe there’s a catch regarding how it’s supposed to work.

1 Like

Hey, as @Everynone mentioned, by default Player→Character Movement→Set Gravity Scale should change gravity on your pawn on runtime.
Maybe you’ve changed something in the character’s Physics, Mass Scale, Controller, Movement Mode or you’re using a custom character…?

Are you sure that you’re detecting those platforms that should change your gravity correctly? Maybe they’re just no triggering.

2 Likes

Yep the issue was the check other actor collision on my player that was incorrect. I was about to send a screenshot and I fiddled around with the blueprints and got it working! Thanks.

1 Like