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

[General] "Unit WANTS to drop an item" Detection

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
Hello again :D

It's the order "dropitem".
Seems like it isn't registered as a point order though (nor as any other order).
Weird, as most orders are registered in one of those categories :p Maybe there's an order category I'm missing, going to check the files real quickly.

Well, if it's a rather specific case you could use a periodic timer and check whether a unit has that order or not.
If you need to loop through a couple dozen of units, then that wouldn't be really efficient (though I'm just going to assume you can narrow it down to units with an inventory).
 
Status
Not open for further replies.
Top