Force player forward?

Hello,

I am trying to force the player forward when they go through a door.

So right now I have it so when the player hits the E key the door opens and then closes shortly afterwards.

What I want is the player to be forced forward through the door when they hit the E key and begin the door animation, so they walk up to the door, hit the E key and then walk through automatically. I also need it to work coming back through the other way. So with that, they need to hit the E key, then be forced to wait a sec and then forced forward through the door.

Any help would be greatly appreciated, thanks.

Assuming your player is based off Character, it has a movement component. That can be used to Add Impulse. You will have to figure out the correct vector. For testing, you can push the player upwards via Z axis, something like 3000.

Another option is to teleport the player from one side of the door to the other, via Actor’s Set Actor Location

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/Transformation/SetActorLocation/index.html