I'm trying to add running in my BP Player Controller for my BP Character. But I get an error with target. I don't know how to fix it,


Hi Falconspiritgame
Set max walk speed is the function inside character movement component, so to use it you have to provide this character movement component.
You could do it like that, for example:


First, get player character node, then from it get character movement node and connect it to the target in set max walk speed node.

1 Like

Hello @Falconspiritgame .

It is because the ‘Set Max Walk Speed’ is a function inside character movement component, so to access it inside your BP_Controller you’ll have to cast to your pawn and as pawn you will have to access character movement component as your target. This is a tedious task.

So setup the blueprint like @Zmtrk did but inside your pawn blueprint.

1 Like

thank you so much! :smiley:

Thank you! It works great :smile: