So i want to make abbility in my game where you can teleport to enemy.
For example there is range i can teleport like 2000 units and if AI is in range i can teleport to it. I press key 1 and i am next to him.
And if there are a lot of enemies i can target to which enemy i teleport to.
Can some one help me please?