Stop Character Movement

Hello again everyone. I’m in dying need of help and would highly appreciate it if anyone could help me. I’m trying to have my character stop moving after overlapping a trigger switch so I can display my widget. I got the trigger to do other things but for some reason I can’t get it to stop my characters movement.

Hi!
I have a similar setup, if you want the character to stop on overlap, you just need an event on overlap, then cast the overlapping actor to the character. get its movement component and from that use the set movement mode node
and set the movement mode to none.
This should disable your character movement

You’d need to create a boolean, something like bIsWidgetActive, then set is as true, when the character overlaps with the trigger, before the widget is displayed and set the boolean to false when the widget is closed/destroyed. Then create a branch for moveforward and moveright, like seen in the picture, and hook the movement input to false and the boolean to the condition.

Thanks for replay back guys, just another silly question. I would have to do this in the character blueprint and not the level blueprint, right?

yes, you can access the boolean in the level blueprint with a cast to the character, if you create the boolean inside the character blueprint

Thanks a lot, just have one more question if you don’t mind. How would I get a widget button to play a matinee animation?

No worries. You can get a reference to the matinee actor in your level by right clicking in the level blueprint. it should be one the first few items and it will be called Create a reference to “MatineeActor” (your name might be different). Then if you drag off of the reference, you should be able to search for play. All you have to do then is to
hook it up to the event that it’s supposed to be played with.

254995-sdfsef.png

254996-sdf.png

I forgot to mention, that you have to set the boolean “is widget active” back to false, when the widget is closed or the matinee animation has finished playing, if you want to be able to move again. Sorry about that.

Thanks, I appreciate it but how do I get the onclick button from the widget BP to the level BP like I have in the picture. So I can play the matinee in the lvl blueprint?

Hey I got it to work by using an event dispatcher.

Thanks, that seems to work,
however in my example i need the character to able to rotate with the platform.
The character is not moving, this is good, but the character is not rotating with the platform.