Cast spell on target from magiceffect script?

Post » Wed May 11, 2016 9:29 am

Here is what I need I'd like to cast a spell on target or location of where the spell projectile hit.



I have managed to completely get lost in is it onhit event or oneffect event start.



I got this compile but its not working maybe due to a lack of onhit I dunno anymore ><



ObjectReference Property SpellSource Auto
ObjectReference Property SpellTarget Auto

Spell Property ReanimateCorpse Auto
{For Fireballs, use TrapFireball06}

Event OnTrigger(ObjectReference AkActor)
if AkActor == Game.getPlayer()
ReanimateCorpse.Cast(SpellSource,SpellTarget)
Endif

EndEvent
User avatar
joseluis perez
 
Posts: 3507
Joined: Thu Nov 22, 2007 7:51 am

Return to V - Skyrim