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

Corpse bones decay

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