• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

About Unit picked dropped item automatically

Status
Not open for further replies.
Level 6
Joined
Mar 9, 2009
Messages
175
About Unit picked dropped item automatically

Hey guys , can you guys teach me how to do a trigger which makes unit automatically pick dropped item on near by distance ?

E.G :
Peasant Dies then drop a tome , a footman which near by about 300 distance will auto pick up the tome .


Guys pls help me
 
Ok your trigger should look like this :
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Peasant
    • Actions
      • Item - Create Tome of Experience at (Position of (Triggering unit))
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Dying unit)) matching ((Unit-type of (Matching unit)) Equal to Footman)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Right-Click (Last created item)
Note : Don't forget to clear the leaks.
 
Status
Not open for further replies.
Back
Top