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