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

Remove Idle items

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
Is it possible via triggers to remove items lieing on the ground after say 30 secs. the only way i can think of doing this is every 30 secsonds of game time run a trigger, but what happens if the items is dropped 2 seconds before the 30 second cut off and disappears instantly. Also if i use the remove items on playable map area will this effect items in heroes backpack. The
 
Level 7
Joined
Jul 20, 2008
Messages
377
One politically incorrect way to do it would be to use a timer for each item. Another politically incorrect (but less) way would be to have a periodic trigger every second that increases an integer for each item until it reaches 30, then destroy it.
 
Level 7
Joined
Jul 20, 2008
Messages
377
Actually, there are events that do track items being picked up and dropped:

Unit acquires an item
Unit loses an item (check to see if the item is owned, it's a Boolean comparison)
 
Status
Not open for further replies.
Top