Behavior using the shooter example

I tried to replicate the shooter example Ai controller code but I am always getting errors mainly due to these 2 issues

IsAlive() it says it is not a member of ProjectCharacter

Seems like the function IsAlive() comes from nowhere and I don’t know how to correct that issue

it doesn’t know what UE_log (LogShooterWeapon) is

I am using 4.3.1 Unreal engine