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

[Trigger] How to move an item dropped in a certain region?

Status
Not open for further replies.
Level 4
Joined
Jul 10, 2013
Messages
60
So, I have a slight problem.

Commonly, a hero will die underneath a large waygate, and their items will drop underneath it, where no one can click to pick them up (or people will abuse this and intentionally drop an item there). I tried to put in a trigger to handle that, doesn't quite work out, any tips where I went wrong?

  • AntiItemDrop
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • ((Item being manipulated) is in AntiItemDrop <gen>) Equal to True
    • Actions
      • Set TempPoint = (Center of Move Item here <gen>)
      • Item - Move (Item being manipulated) to TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Status
Not open for further replies.
Top