If you are inheriting from ACharacter then it already has a CharacterMovementComponent which you can access with:
GetCharacterMovement()
If you are inheriting from ACharacter then it already has a CharacterMovementComponent which you can access with:
GetCharacterMovement()