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

Order Unit/Hero to pick up Item when it comes in range.

Status
Not open for further replies.
Level 5
Joined
May 24, 2017
Messages
93
I need help with a GUI method of checking if a item comes within range of a hero and then order the hero to pick up the item. Only works the first time the item comes in range so it does not spam the pick up command.

Example: Paladin comes in range of a potion on the ground, he is ordered to pick up the potion. If the player controller does not want the item, he can right click to move away. If the paladin comes back in range of the item, he is ordered to pick up the potion.

Please make as simple as possible and MUI.
 
Level 5
Joined
Jul 31, 2020
Messages
103
Well, you asked for a simple solution, so I tried to keep it as simple as I could. Be warned, I didn't spend hours to test every edge case, and nor did I put together something absolutely bulletproof. It gets the job done, but it's mostly to inspire you to finish it yourself. I trust you can edit it to your liking.

Trigger explanations are in the comments.
 

Attachments

  • (1)item_pick.w3x
    21.1 KB · Views: 36
Level 5
Joined
May 24, 2017
Messages
93
Thanks for the map. Could you try to make the items more generic? Like when the Hero's come in range of ANY item. I like what you did and I have some ideas now but if you have time maybe you could figure it out. Thank you
 
Status
Not open for further replies.
Top