Difference between revisions of "Resurrect"
cleaning up
imported>DragoonWraith (→See Also: Kill) |
imported>DragoonWraith (cleaning up) |
||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
Resurrect ''AnimateFlag | Resurrect ''AnimateFlag'' | ||
Resurrects the calling actor. | Resurrects the calling actor. If the AnimateFlag argument is 1, the actor will animate getting up (as if from a knockdown). Scripting or AI packages may interrupt the animation, so one should be careful to avoid these. | ||
AnimateFlag | The AnimateFlag appears to be optional when Resurrect is used from the Console, but not when used in script. | ||
== Animation Example == | |||
The following code is used to allow the actor time to get up before continuing to execute: | |||
short FlagDead ;Set to 1 when actor is dead and to 0 when resurection anim is | short FlagDead ;Set to 1 when actor is dead and to 0 when resurection anim is | ||
;complete | ;complete | ||
Line 43: | Line 41: | ||
== Using on Player == | == Using on Player == | ||
Using | |||
Using Resurrect on the player will result in loss of magic and racial abilities and cause camera problems (camera becomes centered on player's feet). See [http://www.uesp.net/wiki/Tes4Mod:Resurrecting_the_Player UESP: Resurrecting the Player] for analysis and alternate approaches. | |||
== See Also == | == See Also == |