How to set MaxWalkSpeed in C++ in 4.18?

Hi,

I’ve been using C++ in UE4 for a while now, but it looks like I can’t get the character movement component of my FP character anymore. Dumb question, but does anyone know how to do this in 4.18?

Thanks

In character class, do this:



GetCharacterMovement()->MaxWalkSpeed = 800;


Make sure to include appropriate includes in .cpp (ie. #include “GameFramework/CharacterMovementComponent.h”)

2 Likes

Thanks, this is what I was missing!