How do I acess HUD functions from my character?

Hi…

I want to access the functions in the HUD class on my character class. How can I access it?

I am editing the template first person shooter class to create my game.

I want to use some functions in the HUD class from the character class. How will I do it?

APlayerController* MyPC = Cast(Controller);

if (MyPC)
{
	MyPC->GetHUD()-> // ... CALL_WHETEVER_YOU_WANT_HERE
}

Thanks for the reply.

Btw I got a question,
Can you explain me what does this function do?
Cast(Controller);

It performs type-safe dynamic cast on given object. In this case you cast Controller variable in Character class to PlayerController class to get access to HUD. You could use regular C++ cast too - (APlayerController*)Controller but its safer to use Cast<> method