enemy always facing player?

How can I get it so that my enemy is always facing my player, no matter where they move?

transform.LookAt(tranfsorm.Find(“playerObjectName”).position, Vector3.up)

That should suffice as a basic look at.

It should be noted that the player object lookup should be cached to improve performance. I wouldn’t recommend any Find calls in an Update function. :wink:

Hey men if you wanna work in a sci-fi game
contact me at rudasvicen8@hotmail.com
it wont be paid at the moment but you
will get money of the earnings
what do yo say? wanna team up?

rudak, fyi, there’s a whole Collaboration forum for pitching such proposals.