Problem with a script in my magic effect

Post » Mon Jun 18, 2012 6:55 pm

I currently have this code in my magic effect object:
Scriptname OnHitResurrect extends activemagiceffectEVENT onInit()		  Debug.MessageBox("init")GetTargetActor().Resurrect()endEVENT

The messagebox pops up when I hit a dead actor (and alive too, but i'll fix that later), but the actor isn't resurrected.

I have no idea what's causing this, i can only think that the "gettargetactor" is returning nothing, and no idea why it isn't.

Yes, I do have the magic effect set to "script"
User avatar
No Name
 
Posts: 3456
Joined: Mon Dec 03, 2007 2:30 am

Post » Mon Jun 18, 2012 1:31 pm

bump.
User avatar
Guinevere Wood
 
Posts: 3368
Joined: Mon Dec 04, 2006 3:06 pm


Return to V - Skyrim