• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How does one detect locust?

Status
Not open for further replies.
Okay I managed to get a working example finally, it detects locust units HOWEVER it creates such massive lag it is unfair. . . =(

Am I missing leaks or is the function really not useable with lots of units?

It picks units by player then picks units within range of that picked unit.

Also thanks to everyone who has replied and attempted to help.
 
Pro solution:
in case all the locust units move in predictable (for example linear) patterns like non-homing missiles, you can calculate possible collision cases directly upon creation of the missile instead of doing periodic enumerations.
You just have to check the intersections of 2 parallel lines of each missile mathematically with all other currently existing missiles that are within a certain range.
 
Status
Not open for further replies.
Top