Resurrect - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Resurrects this actor.

Syntax

Function Resurrect() native

Parameters

None.

Return Value

None.

Examples

; 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

Notes

  • 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.