Enemy Attack at Certain Range to Player?
JoshKahane
Member Posts: 470
Hi
I was wondering. How can I make it so that for example at a certain range of my choice the enemy does a certain action (attack is my plan) when it comes within range of my player. So say the enemy is at a distance so that he is seen on screen, how can I make it attack when this happens?
Thanks.
I was wondering. How can I make it so that for example at a certain range of my choice the enemy does a certain action (attack is my plan) when it comes within range of my player. So say the enemy is at a distance so that he is seen on screen, how can I make it attack when this happens?
Thanks.
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Also, any attributes I need to make (for example player x and y, (Im guessing, would I need them?)) won't I need to make them for every single enemy or just once? I want to have several enemies but all react to the distance individually.
Now I just have to work out how to have him stop running and attack.