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

[Solved] Target of order?

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
Event - Any unit is issued an order targeting an object

-> Is there a way to return the item that the unit was issued to pickup?

long story short, im working out the bugs of a localized item system and one of the bugs is that if someone tries to pickup an item but has a full inventory than it will desync
 
Level 8
Joined
Sep 18, 2011
Messages
195
Probably you can use:

Event
  • Unit - A unit Is issued an order targeting an object
Condition:
  • (Target item of issued order) isn't No item
Then

  • Item - Show (Target item of issued order)
JASS:
set udg_tmpItem  =  GetOrderTargetItem()
Maybe that's what you want?

I thought of a similar item system which checks if the unit is within a range of the item, so they will check what does the hero have and try to build something based on a recipe rule.
 
Status
Not open for further replies.
Top