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: http://prntscr.com/ba8tym What is the problem, and how can I fix it?
You must get the correct Player reference you want your enemy to rotate, in this case Get Player Pawn could not return the correct Pawn reference by index.
If you have no reference, try following this:
I’m not sure AI have access to GameState, so maybe my pic could not work for you.
I know its a lot of nodes to get one single reference, maybe you should store it inside your enemy class and get it instead of this solution.