Completely Destroy item's Model

Level 3
Joined
Mar 29, 2011
Messages
38
I'm using a unit's model as item's model
When that item is destroyed (by attack), the model is still appear there.

How can i completely destroy it? I try others model but just the default model is work.
2.jpg
 
Last edited:
Level 3
Joined
Mar 29, 2011
Messages
38
Thanks to Aeroblyctos's hint, I found a solution for this, first i set hp of that items to 1000.

  • DestroyAttackedItems
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Item - Pick every item in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Current life of (Picked item)) Less than 1000.00
            • Then - Actions
              • Item - Remove (Picked item)
            • Else - Actions
That's way, with 1 hit, the item will be destroyed.
But i don't know if it's cause lag?
 
Level 25
Joined
Aug 18, 2009
Messages
4,087
There is

JASS:
native TriggerRegisterDeathEvent takes trigger whichTrigger, widget whichWidget returns event

but you would need to catch new spawned items, such as created by triggers or sold by shops. Surely, you can also periodically pick items around the map, though it is not as efficient/checks in intervals. Do not know what you want with 1000hp then, just compare life to 0.
 
Top