I’m using the below BP to track the player and when the turret is on the ground it follows the player perfectly. However when I put it high above the player I discover that it is only moving left or right not up or down so when the turret fires it doesn’t fire down onto the player but straight ahead above him. I can’t figure out what in the below BP is making the turret follow the player left and right only but not up or down.
Need to change the x rotator
You change the z rotator (left / right) but you also need to change the y rotator (up / down in the facing direction). You might be able to do that with the “find look at rotation” node, but like you did for the z rotator, you may have to adjust its rotation by 90, 180 or 270.
Do you mean like below? I have tried 90, 180 and 270 and it still doesn’t fire down at the player.
That was what I had in mind, yes. Not sure why that wouldn’t work.
Which direction does it fire?
Did you try 0?
I don’t have an easy way to look at code at the moment.
For some strange reason when I set the z yaw to 90 it follows the player left and right but when i set the y or x axis it stays stuck on whatever degrees I set in the float - float not following the player at all.
Then my guess is that the “Find Look At Rotation” is only doing Yaw, which would surprise me. Can I see the right hand side of your code as well?
I’m using part of the BP in this marketplace asset. Laser Turret Blueprint in Blueprints - UE Marketplace and it does seem that the “Find Look At Rotation” is only doing yaw. When I bypass the make rotator brake rotater it still follows the player left to right offset by 90 degrees but doesn’t follow the player in the y axis.
Its OK asset creator got back to me with a fix.