ReAnimate Target Actor

Post » Wed Jun 20, 2012 9:48 am

I feel like I've just entered the STUPID ZONE today. I've got some really simple things that I just can't nail. At the moment:

ReAnimating a dead corpse. Simple right? Somehow I'm making this difficult.

I need to reanimate a corpse and have it act like any other reanimated corpse the player/conjurer could animate. The problem is that so far, I can't get it to work UNLESS the player is looking at the corpse when the script casts the spell. Here's the script:

Scriptname mm_BeluaSoulServant extends activemagiceffect Import DebugActor TargetActor CasterEvent OnEffectStart(Actor akTarget, Actor akCaster)Target = akTargetCaster = akCasterEndEventEvent OnDeath(Actor akKiller)   Trace(Target + "Actor Dead")   mm_BeluaReanimateSoulServantSpell.Cast(Caster,Target)EndEvent

Should be simple enough, but it doesn't work unless I'm looking at the corpse when it dies. I've tried SELF targets and had the TARGET cast the spell on themselves but that doesn't put them under the players control. I've removed projectiles from the magic effect, I've tried making it an aimed magic effect. Seems no matter what I do, I must have my cross hairs OVER the target when they die (or in other cases it just doesn't even work). I also have ignore LOS enabled on the spell. Nothing seems to be working.

Can anyone think of the magical combination of spell and effect settings I need to be able to reanimate a corpse without having to have the actor under the player's crosshair?

Thanks for the assist.

-MM
User avatar
Ana Torrecilla Cabeza
 
Posts: 3427
Joined: Wed Jun 28, 2006 6:15 pm

Post » Wed Jun 20, 2012 5:51 am

I've just spent the past 10 minutes looking at the ReanimateCorpse spell to try and figure out how it works. I give up, I can't see anything except it making the target say some lines, and turn into ash when dead. No idea how it turns them into undead.

Anyway, try changing OnDeath to OnDying. OnDeath seems to not fire correctly all the time.
User avatar
Susan
 
Posts: 3536
Joined: Sun Jun 25, 2006 2:46 am

Post » Tue Jun 19, 2012 11:08 pm

RandomNoob., Thanks for the suggestions and taking a look. As long as I was looking at the actor when he died it worked properly.

EDIT2: OK, apparently SELF targetting spells can be CAST from a target to another target using CAST function. This seems to be working. as a spell that is cast on SELF but in this case, the player is actually casting it on a remote target and doesn't need LOS/Cursor coverage to work.

mm_BeluaReanimateSoulServantSpell.cast(Caster,Target)

Finally? :)

-MM
User avatar
sophie
 
Posts: 3482
Joined: Fri Apr 20, 2007 7:31 pm


Return to V - Skyrim