• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Completely Destroy item's Model

Status
Not open for further replies.
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 26
Joined
Aug 18, 2009
Messages
4,097
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.
 
Status
Not open for further replies.
Top