Jass:DelayedSuspendDecay
Aus Mappedia
| Funktion: DelayedSuspendDecay | |
|---|---|
| Parameter: | nothing |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function DelayedSuspendDecay takes nothing returns nothing local group boneGroup local group fleshGroup // Switch the global unit groups over to local variables and recreate // the global versions, so that this function can handle overlapping // calls. set boneGroup = bj_suspendDecayBoneGroup set fleshGroup = bj_suspendDecayFleshGroup set bj_suspendDecayBoneGroup = CreateGroup() set bj_suspendDecayFleshGroup = CreateGroup() call ForGroup(fleshGroup, function DelayedSuspendDecayStopAnimEnum) call ForGroup(boneGroup, function DelayedSuspendDecayStopAnimEnum) call TriggerSleepAction(bj_CORPSE_MAX_DEATH_TIME) call ForGroup(fleshGroup, function DelayedSuspendDecayFleshEnum) call ForGroup(boneGroup, function DelayedSuspendDecayBoneEnum) call TriggerSleepAction(0.05) call ForGroup(fleshGroup, function DelayedSuspendDecayStopAnimEnum) call DestroyGroup(boneGroup) call DestroyGroup(fleshGroup) endfunction
