What I want to happen is for the enemy to chase the player.
I also need him to randomly set an attack. Which I planned on doing by set wep to random(1,3) Then if wep = blah blah use attack.
I was hopping for some help on how to do this because my distance formula doesn't seem to work as he will either infinity use his weapon (if set to greater than) or never use it at all (if set to less than).
I also need him to do things on the Y-axis by jumping and such but I figured I could figure that out later.
If I am going about this in all the wrong ways please tell me
Any and all help is appreciated,