[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
 
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