After Teleport Character controller keeps moving forwards

So I have the character controller walking into an overlap box. When character overlaps the box… It teleports them into a different level stream box which then throws up a widget for fake loading.

(Doing level streaming instead of level loading)

The thing is… the player holds “W” to walk forward into the box. The fake loading screen comes up and the teleport is successful. BUT the W is still active and the character is moving forwards on it’s own. (Its remembering the held W from before the overlap teleport) Only by pressing “W” again… does it stop moving and let the player decide how to move.

How in the world do I stop this?
Here is a video to explain visually.

https://www.youtube.com/watch?v=zYuf5NBTn_c&ab_channel=AskScott

You don’t have a player controller connected to enable and disable input.

I hooked “Get Player Controller” in them… same result.

I think this may has something to do with the combination of showing a widget at the same time a key is keeping pressed… Since i’ve the same problem with the Widget Drag&Drop system…
perhaps same problem

1 Like

Use “Stop Movement Immediately” function before disable input. Get characters movement component and connect it to the target slot.

2 Likes

That solved it! Thank you sir!

Because Target is what should get/loose Input from your Keyboard (it may be Player, Self, other Actor etc.) and Player Controller is where you plug the GetPlayerController in

Otherwise it will not work, Disable Input = disable communication between Actor and your Inputs, same about Enable - if you wanna use “E Key” Node inside of an Actor that’s not your Player - you need to Enable Input for it and your Controller first (if you have more Players you wanna block/enable specific Controller)

I know this is an old topic, and this should be easy, but the disable part works perfectly, but when I try to enable input, my character remains disabled…