• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Corpse bones decay

Status
Not open for further replies.
Level 10
Joined
Apr 18, 2012
Messages
91
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
91
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