Include "Engine/DamageEvents.h" for FPointDamageEvent

I couldn’t compile the line of code with FPointDamageEvent until I added

#include "Engine/DamageEvents.h"

at the top of Gun.cpp

This isn’t mentioned in the video and the UE 5.1 documentation says to include “Engine/EngineTypes.h” instead, which didn’t solve my compilation error. Anyways, if you have this problem just add that header file.


Thank you Silver812. You saved my life.

youre a badass, thanks.

Privacy & Terms