"GetControlledPawn" error

I’m working on a project for my school class on Unreal 4.19.2, and I’m following a tutorial on YouTube to do it. The tutorial has me write the line: AEnemyAI* EnemyAI = Cast<AEnemyAI>(GetControlledPawn());, but the “GetControlledPawn()” is yielding an error: “Identifier ‘GetControlledPawn’ is undefined”. The code in the tutorial and my code match exactly, so I’m assuming that the versions of Unreal are different between mine and the tutorial (the tutorial came out in April of 2017), and thus the GetControlledPawn is either named differently or now needs an include to work. Below is a screenshot of my code (it’s very small atm).

Hey , I believe GetPawn() is what you’re going to want to use there to grab the controller’s pawn.

That worked perfectly, thank you ElderAbyss!