Accessing AIController From Actor Component

Well hey that seemed to have worked. Thank you.

So in the short summary in the .h file I have

	APawn* Pawn;

	AAIController* MyAIController;

and then in the .cpp file I have.

Pawn = Cast<APawn>(GetOwner());

MyAIController = Cast<AAIController>(Pawn->GetController());

I am at a conference for another day and can not really test it I am home but I will update the post when I do in case anyone else has the same issue in the future.

1 Like