How to make an AI Tank Turret follow the player? Whilst the tank is moving?
I have a pawn tank made with a mesh chassis asset and a turret asset in a capsule. The tank's alert state actives and it follows the player just fine.
However, the turret is supposed to follow the player. It instead starts glitching out pointing in the air and in random directions as the tank moves, I'm updating the turret's location using a tick event and a "Find Look at Rotation" node.
What am I missing? or do I need to fix to have the tank move and it's turret also follows the player?
What works: The Tank is alerted when the player is close and starts moving. What I need to fix: The tank's turret does not rotate to point at the player when alerted (it glitches out).
Any help would be appreciated!
asked Mar 08 '17 at 09:02 AM in Blueprint Scripting
You can set it up using relative rotation and world location if the turret is a component in the tank's BP like this:
Or using just world rotation like this:
answered Mar 08 '17 at 01:34 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here