• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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