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

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

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.
Back
Top