Difference between revisions of "ResurrectActor"

622 bytes added ,  08:07, 14 December 2016
no edit summary
imported>Haama
(→‎Notes: Removed unclear note)
imported>Tgspy
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/Resurrect Resurrect].
{{Function
|origin = GECK1
|summary = Resurrects an actor from the dead or unconscious state.
|name = ResurrectActor
|referenceType = [Actor]
|arguments =
  {{FunctionArgument
  |Name = Anim
  |Type = int
  |Value = 0, 1
  }}
 
|example = InternJohnREF.ResurrectActor 0
JoeREF.ResurrectActor 1
}}
 
== Params ==
*'''1''':Make the actor use animation, the actor stands up after being resurrected.
*'''0''':The actor doesn't use animation, he is standing up after being resurrected.
 


== Notes ==
== Notes ==
*Calling [[ResurrectActor]] on NPCs with the animate flag false (i.e. either absent or 0) can cause Fallout 3 to crash
*Calling Resurrect on an actor with the animate flag true (or 1) will cause them to fall through the geometry unless it is called in the same frame as their death.
*Calling Resurrect on an actor with the animate flag true (or 1) will cause them to fall through the geometry unless it is called in the same frame as their death.
*If the animate flag is true, body data will not be updated when the calling reference is resurrected.  This can be used to produce living actors with missing limbs, but has several issues:
*If the animate flag is true, body data will not be updated when the calling reference is resurrected.  This can be used to produce living actors with missing limbs, but has several issues:
Line 16: Line 37:


[[Category:Console Functions]]
[[Category:Console Functions]]
[[Category:Console Functions (GECK 1.1)]]
[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Actor Functions]]
[[Category:Actor Functions]]
[[Category:Actor Functions (GECK 1.1)]]
Anonymous user