Can I call HUD/UI functions in actor class?

I’m simply trying to display a texture over an object when you collide with it (in my case my goal is to create a dynamic damage counter with particles and stuff) if you take a look at the screenshots below, it tells me that on line 40 inside the .cpp file, that “DrawHUD is not a member of AActor”. I have included all libraries needed, anyone know of workaround?

As the compiler says, DrawHud is not a member of AActor. This is one from AHUD. So what you need to do is create a custom HUD class that inherits AHUD and override DrawHud()