I’m trying to create a function that reverses the player’s gravity when pressing the r key. This is my first time using Unreal, so I’m making it while watching various gravity-related lectures, but an error keeps occurring in the target section. How can I create the functionality I want?
The video I was watching was about gravity being reversed when you step on an object. I want to change this so that when a certain key is pressed, the player’s gravity is reversed.