GameSalad

Make an enemy follow the closest character.

PigeonGamesPigeonGames Posts: 18Member, PRO

Hey guys, there's the question:

I created a "death match arena", with 2 teams inside the same scene, and want the enemies to follow only the closest character. The objective is extend that to the AI, and make the NPCs fight by themselves (without player influence).

What's the best method to achieve that distance calculation?

Thanks in advance.

Our games: Android | iOS | Indiexpo

Best Answer

Sign In or Register to comment.