scn CreatureOnDeathScriptfloat actorAlphashort deathActivefloat timershort timerStatusshort myStatusBegin OnDeath set timer to 5 set timerStatus to 1 set myStatus to 2EndBegin GameMode if myStatus == 0 return endif if timerStatus == 1 if timer > 0 set timer to timer - getSecondsPassed else set timerStatus to 0 set deathActive to 1 endif endif if deathActive == 1 pme STRP set actorAlpha to 0.9 SetActorAlpha actorAlpha set deathActive to 2 endif if deathActive == 2 set actorAlpha to ( actorAlpha - .01 ) if actorAlpha < 0 set actorAlpha to 0 set deathActive to 3 endif SetActorAlpha actorAlpha endif if deathActive == 3 set deathActive to 0 disable sme STRP set deathActive to 0 endifEnd