Hi, I am currently trying to make an FPS game. I want the enemy to rotate towards the player, but when I try Get Player Pawn and check if its valid it returns false. Here is the part of my script I think is needed:
What is the problem, and how can I fix it?
TryGetPawnOwner should give you the pawn, have you tried using that instead?
I think the IsValid is kind of unnecessary, just try without the branch? Also you can try casting from the GetPlayerPawn to the pawn you’re using.