• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Corpse bones decay

Status
Not open for further replies.
Level 10
Joined
Apr 18, 2012
Messages
93
Is it possible to pause and then resume decay of bones of unit that died?
"Unit - Suspend corpse decay for (Picked unit)" this does work to pause it but then using "Unit - Resume corpse decay for (Picked unit)" has no effect
 

Attachments

  • decay.w3m
    18.2 KB · Views: 33
Level 10
Joined
Apr 18, 2012
Messages
93
it's just a template. Dead unit is picked picked by groups correctly.

  • Untitled Trigger 002
    • Events
      • Player - Player 1 (Red) types a chat message containing a as An exact match
    • Conditions
    • Actions
      • Set VariableSet Storage_Group = (Units in (Entire map) matching (((Matching unit) is dead) Equal to True))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in Storage_Group) Greater than 0
        • Then - Actions
          • Unit Group - Pick every unit in Storage_Group and do (Actions)
            • Loop - Actions
              • Unit - Suspend corpse decay for (Picked unit)
        • Else - Actions
      • Custom script: call DestroyGroup(udg_Storage_Group)
      • Wait 5.00 seconds
      • Set VariableSet Storage_Group = (Units in (Entire map) matching (((Matching unit) is dead) Equal to True))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in Storage_Group) Greater than 0
        • Then - Actions
          • Unit Group - Pick every unit in Storage_Group and do (Actions)
            • Loop - Actions
              • Unit - Resume corpse decay for (Picked unit)
        • Else - Actions
      • Custom script: call DestroyGroup(udg_Storage_Group)
 
Status
Not open for further replies.
Top