APlayerController :: "get controlled pawn"

Does APlayerController class has a method to get controlled Pawn ?

1 Like

Itā€™s in the super class. AController::GetPawn() (GetPawn | Unreal Engine Documentation)

2 Likes

So sorry to necro this, but Iā€™m not fully adept with BPs yet nor a seasoned ā€˜programmerā€™, so why is there no get controlled pawn node, and what do I do instead if its no longer generated ?

This became a problem bc Iā€™m following a youtube tut on creating ai pawn for player which Iā€™m needing now. This is the only spot where a search generated anything meaningful to a non coder ISh.

ty

Donā€™t understand the question. Are you talking in C++ or in BP? Both in BP there is the ā€œGet Controlled Pawnā€:

1.jpg](filedata/fetch?id=1810944&d=1599935230)

and



AController::GetPawn()


still exists.

NVM i GOT IT, I started out with wrong class dummy me not sure why, I should have started out with ai controller ;(, saw blueprint channel on discord, recā€™d ā€˜selfā€™ instead of start over. TY above ,very sorry I startedf out with youtube tut on smart tv, missed one step is all, accidentaly started out with pawn class vs aicontroller :(((

TY so much for response!!!