Adding impulse to character

Hello,
how can I add impulse to character in C++ code? GetCharacterMovement()->AddImpulse() is not working.
I tried to use UPrimitiveComponent, but it cause a critical error.

Already included.

I don`t know how, but it started working

Hi,

You may just need to add the header file in your cpp.

#include "Gameframework/CharacterMovementComponent.h"

How are you using it?

Great! Glad you got it working.