How to reverse gravity of an actor blueprint?

Hello !

I tried to make a game where you can reverse the gravity during gameplay. So I have tried to change the world’s gravity. But I think it is impossible from a script. So I created a blueprint with a projectile movement component. Thanks to it, I can change the gravity scale of the blueprint when an event is triggered.
However, though it works when I change the gravity scale (of the projectile movement component) in the editor, it doesn’t work when I change it from the event graph. In fact when the event is “begin play”, it works. But if it is an input with the keyboard, nothing append. It is not an input problem, I already check this issue.

So I want to make that every actor/blueprint go up or down when I press a button.

Here is my blueprint :

Thank very much you for helping !

PS: Sorry for my english ! I am French !

Have you tried using “add force” to add a physics force on the opposite direction with a size of gravity*(-2)?

Ok so I tried adding force but it doesn’t work I don’t know why. But I also found a solution !
I use the set physic linear velocity which add a velocity to the object. Next you juste have to choose the force you want to apply every frame. This is fake gravity, so you have to set the simulate physics of your blueprint to true. I also set my world’s gravity (in the world’s setting) to 1 so I have no problem with that.
That’s maybe fake gravity but it looks not so bad :slight_smile:

If you need this is my object blueprint :

How do you apply this to an object please ?