How do I GetMovementMode (c++ fps tutorial q)?

The tutorial is asking that inside of an AnimBlueprint - in the event graph I should be able to get a GetMovementMode dragged off a character pin - there just doesn’t seem to be one. Am I missing something?

I thought I found it but I don’t know how to get the character movement component through to the animBlueprint… it comes up as null when I’m dragging off playerController or playerPawn objects when I check the pins using a breakpoint.

is this worth a bump?

Hello,

If you can’t find GetMovement node, try the following:

  1. Right-Click on the screen near Cast To Character node;
  2. Uncheck the Context Sensitive Flag;
  3. Start typing the function’s name and you’ll find it;

39551-getcharactermovement.jpg

After this, connect Cast To Character node with Character Movement one.

As for AnimGraph you should do the following:

  1. Double-click on AnimGraph in MyBlueprint section (located at left bottom of the screen by default).
  2. Right-click on the blueprint workspace to add the State Machine. Please pay attention, that the actual function is called “Add New State Machine”, not “Add State Machine”.

39552-statemachine.jpg

After that, just follow the tutorial and everything should work correctly. Some compile warnings might occur during compilations of blueprint between steps, but in the end everything compiles and works fine.

Just don’t forget to add appropriate Play Actions for your States:

39553-playstate.jpg

And I also assume you’ve imported the animations correctly as described in the tutorial.

Thanks for this, sorry I didn’t catch the subscription so didn’t see it until now.