Jump to content

Enemies resurrecting themselves


Recommended Posts

I have tried going about this several different ways. I tried using the premade reanimation spells and some custom made reanimation effects, but I was ultimately unsuccessful in every attempt. The closest I have gotten is using the resurrect command. However, this resets aggro and the get up animation is clunky. I was wondering if anyone had any advice on having enemies like zombies revive once then stay dead. Currently, I am using the script below which is a bit janky but does work. I use the flame atronach death spell to try and cover up the weird animation, and I plan on adding something to make sure it only revives once.

 

extends Actor
Property Spell Auto
Event OnDying(Actor akkiller)
utility.wait(1.0)
spell.cast (self,self)
debug.sendanimationevent(self,"GetupBegin")
Self.Resurrect()
EndEvent

 

 

 

 

 

 

TLDR, I need help making zombies feel like zombies.

Link to comment
Share on other sites

  • 4 weeks later...

Try this.

 

 

Spell Property dunReanimateSelf Auto
 
Auto State WaitingDeath
Event OnDeath(Actor killer)
       utility.wait(1.0)
   If (Self.IsDisabled() == False)  ; Fail Safe for death ASH PILE
       dunReanimateSelf.cast(self,self)
       GoToState("AllDone")          ; Do just once
EndIf
EndEvent
EndState
 
State AllDone
;
EndState

 

 

 

Use the same vanilla spell "dunReanimateSelf".

Edited by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...