Resurrect - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Resurrects this actor.

Syntax[edit | edit source]

Function Resurrect() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Resurrect Nate (but sadly, he doesn't become undead...)
Nate.Resurrect()


ScriptName ResurrectHumanOrAnimal extends ActiveMagicEffect 
{{Only resurrect human or animal targets}}

Keyword Property ActorTypeAnimal auto
Keyword Property ActorTypeNPC auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	If (akTarget.HasKeyword(ActorTypeAnimal) || akTarget.HasKeyword(ActorTypeNPC))
		akTarget.Resurrect()
	EndIf
EndEvent

See Also[edit | edit source]

Notes[edit | edit source]

  • Resurrect won't work when "starts dead" is flagged in the reference window.
    • If you enter a dungeon with actors already dead(for example, already dead draugrs are a common actor with this flag set) chances are they have this flag set.