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.

Hi,

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

#include "Gameframework/CharacterMovementComponent.h"

Already included.

How are you using it?

I don`t know how, but it started working

Great! Glad you got it working.