Greetings there! ^_^
So i have been looking through the tutorials on AI behaviour and there are some great ones! But however not what i need.
I need the enemy to walk up to the Player and perform an attack when nearby.
Basically so far;
When Player is in LOS of enemy.
If enemy is greater than the Players X, toggle Right
If enemy is lesser than the Players X, toggle Left.
But now, i want the enemy to attack at X+100 or X-100 of Players position, depending on which way they are coming from, left or right.
However the other toggle right or left are interfering with this.
I just want the enemy to walk up to u and start attacking when close enough. Anyone can help with this?
Thanks in advance! ^_^