Jass:CreatePermanentCorpseLocBJ
Aus Mappedia
| Funktion: CreatePermanentCorpseLocBJ | |
|---|---|
| Parameter: | integer integer player location real |
| Rückgabewert: | unit |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function CreatePermanentCorpseLocBJ takes integer style, integer unitid, player whichPlayer, location loc, real facing returns unit set bj_lastCreatedUnit = CreateCorpse(whichPlayer, unitid, GetLocationX(loc), GetLocationY(loc), facing) call SetUnitBlendTime(bj_lastCreatedUnit, 0) if (style == bj_CORPSETYPE_FLESH) then call SetUnitAnimation(bj_lastCreatedUnit, "decay flesh") call GroupAddUnit(bj_suspendDecayFleshGroup, bj_lastCreatedUnit) elseif (style == bj_CORPSETYPE_BONE) then call SetUnitAnimation(bj_lastCreatedUnit, "decay bone") call GroupAddUnit(bj_suspendDecayBoneGroup, bj_lastCreatedUnit) else // Unknown decay style - treat as skeletal. call SetUnitAnimation(bj_lastCreatedUnit, "decay bone") call GroupAddUnit(bj_suspendDecayBoneGroup, bj_lastCreatedUnit) endif call TimerStart(bj_delayedSuspendDecayTimer, 0.05, false, null) return bj_lastCreatedUnit endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| integer | style | |
| integer | unitid | |
| player | whichPlayer | |
| location | loc | |
| real | facing |
