Quantcast
Channel: Latest Questions by fishZombie
Viewing all articles
Browse latest Browse all 14

find closest target?

$
0
0
Right now, I am creating a Sphere from a unit, and making it grow. When a Player unit gets touched by it, it Echos its X,Y,Z position to a Global Vector3. The Sphere dies after touching it's first Player unit. Trouble is, if the player is behind a wall, or inside a building with a door, that is far away. If there is a Unit 3 spaces away (with a wall between them), and another unit 7 spaces away, that is within firing range, then how do I get the Enemy to target the Obvious choice?

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>