Get Player Pawn
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?
asked May 30 '16 at 04:14 PM in Blueprint Scripting
TryGetPawnOwner should give you the pawn, have you tried using that instead?
answered May 30 '16 at 05:05 PM
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.
answered May 30 '16 at 07:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here