• 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.

Idle Unit Detection

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
No, WarCraft III has very poor support for interacting with player GUIs.

You can detect idle units programaticly by polling units that have no current order. Be careful as polling is rather resource intensive and could easilly cause performance to degrade if there are any leaks in the script, if the period is too high or if the unit scope is too large.
 
Status
Not open for further replies.
Top