Enemies that move towards your position

Hey, I’m new here on the Unity forums.
I’m also pretty new to Unity as a whole and I’m currently doing a firstperson hack 'n slash.

What I need help with is my enemies. I can so far get them to spawn but I need them to move to my position.
What I’ve done so far is

public void SetTarget(Player player)
        {

            opponent = player;



        }

They now have me as a target but I need to make a function that makes them TURN to face me, then move to my position and attack me.
I’m however not sure how to code this, so any help would be appreciated.

Thanks,
Mez

This might be more complex than you’re thinking, but there’s an example project using UnitySteer ( http://www.arges-systems.com/articles/35/unitysteer-steering-components-for-unity ) that demonstrates what you’re looking for.

Hi Mez!

I recommend you go do the FPS tutorial:
http://unity3d.com/support/resources/tutorials/fpstutorial

Yes, much easier than my recommendation.

There’s a lot of examples in the forum for slowly rotating something towards a point. And the tutorials shows how to move. The FPS tutorial contains scripts that shows how enemies could behave.

Thanks for the tips, I’ll check it out.

Mez