Hey, I'm working on a spell that's meant to spawn a summon portal that shoots fireballs at the player, but when I cast it ingame the spell doesn't do anything. I'm a noob at scripting and I don't know what's causing this problem or what can I do to solve it. Can you guys help me?
Scriptname RCInmovilization extends activemagiceffect Activator Property SpellActivator Auto SPELL Property Fireball Auto STATIC Property XMarkerHeading Auto ObjectReference Property PlayerREF autoEvent onEffectStart(Actor akTarget, Actor akCaster)ObjectReference newMarker = akCaster.PlaceAtMe(XMarkerHeading) ;Placing the markernewMarker.moveto(akCaster, 0.0, 0.0, akCaster.GetHeight() + 10, true) ;Moving the invisible marker to caster locationObjectReference newActivator = newMarker.PlaceAtMe(SpellActivator) ;Spawning the activator to marker's positionFireball.Cast(akSource = newActivator, akTarget = PlayerREF)endEventEvent onEffectFinish(Actor akTarget, Actor akCaster) Debug.Trace("Magic effect fades from " + akTarget)EndEvent