• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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