• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] Target of order?

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,763
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.
Back
Top