67 PlayerController GetPawn Error

When I search for GetPawn in Visual Studio I get an error message saying 'Class “ULocalPlayer” has no member “GetPawn”. It does not even show up in my search.

GetFirstPlayerController not GetFirstLocalPlayerFromController

Thanks! Much appreciated!

hello,i have the same problem i use GetFristPlayerController and i also included “GameFrameWork/Controller.h” but it doens’t work i dunno what to do anymore im totally confused.

Doesn’t work how? Also that’s not the correct header, what is the type returned by GetFirstPlayerController?

forgot to add my problem is a little different in the intellisense it says no member available and i included related headers as i said above

i also added another header that has mentioned in https://api.unrealengine.com/INT/API/Runtime/Engine/GameFramework/AController/GetPawn/index.html then what the problem is tht i can’t use GetPawn() method ? :frowning:

Privacy & Terms