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

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: 67
Status
Not open for further replies.
Top