resurrect() not working properly on Vampire Lord model

Post » Wed Jan 22, 2014 6:06 pm

Hi all I have made a script which resurrects a boss each time he is killed attached to a trigger box:

Scriptname NemesisRebirthScript extends ObjectReference Quest Property POS Auto Event OnTriggerEnter(ObjectReference akActionRef)    If(akActionRef == Game.GetPlayer())    If (POS.GetStageDone(60))    Nem2nd.Resurrect()    NemRebirth.Reset()    EndIf    EndIfEndEventCell Property NemRebirth Auto Actor Property Nem2nd Auto 

Now the script works fine the problem is when the vampire lord (Nem2nd) is resurrected he is lying on the floor and moves around like this instead of standing upright and equipping spells. Anyone help me please? see image:

http://www.nexusmods.com/skyrim/Images/384344/?

User avatar
!beef
 
Posts: 3497
Joined: Wed Aug 16, 2006 4:41 pm

Post » Wed Jan 22, 2014 6:59 pm

Hmm, yeah this wont work on the VL at all, but it works for all other actor types.

You'll have to get creative with an http://www.creationkit.com/OnDeath_-_Actor(don't do this if this isn't a unique-to-your mod VL) on the actor itself, and involve the use of an X marker, and a type of hit effect(like SummonTargetFX) and PlaceAtMe, and placing a new VL at the xmarker that is placed when the original VL dies(disabling the original, or some other way of cleanup).

The hit effect, or any effect you want, can be used in such a way as to give the lllusion of him being englufed in magic and resurrecting himself. The X marker can http://www.creationkit.com/Cast_-_Spell a spell on itself with the hit effect art attached to the MGEF.

I think an http://www.creationkit.com/OnDying_-_Actor would be better but then you'd have to take in account for OP characters one shotting the VL through the event.

Sounds like a lot of work, but that's what I would do.

User avatar
Kelsey Hall
 
Posts: 3355
Joined: Sat Dec 16, 2006 8:10 pm

Post » Wed Jan 22, 2014 9:34 pm

Jeesus man sounds a bit too complicated for me. I got it to work once by using two actors Nem and Nem2(initially disabled) when the nem is killed he is disabled and nem 2 enabled. But what I wanted was nem2 to be resurrected every time the player leaves and reneters the cell. Guess I will have to settle for one reincarnation unless anyone else can offer a less complicated solution haha

User avatar
Sami Blackburn
 
Posts: 3306
Joined: Tue Jun 20, 2006 7:56 am


Return to V - Skyrim