• 🏆 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!

Unit Drops an Item - Which order is that?

Status
Not open for further replies.
Hi, I've got an issue with my map. My unit is channeling a spell, and when it is issued any order, it should stop channeling it. My first problem is that I am using a Channel ability, so it doesn't stop when unit is given another order. So, my trigger is like this:
  • Events:
    • Unit is issued an order with no target
    • Unit is issued an order targeting an object
    • Unit is issued an order targeting a point
  • Conditions: ...
  • Actions:
    • Unit - Order (Ordered unit) to Stop
It works for every single order I could think of, but it doesn't work if I order it to drop an item. It just walks to the target point, drops the item channeling spell the whole time (wtf!?).
So, I need an event which will notice that I ordered my unit to drop an item.
Any thoughts? +rep for help
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Forget about Unit Loses Item event, try this test map.
It uses a comparison between initial order and current order of the caster.

When the unit is ordered to drop an item, its order has been changed to something else, causing its current order != initial order, therefore stops channeling.
 

Attachments

  • Channeling Spell.w3x
    13.1 KB · Views: 65
Status
Not open for further replies.
Top