OnEffectStart not triggering...

Post » Tue Feb 12, 2013 7:18 pm

This script is attached to an aimed projectile spell (with a dagger as the projectile). All properties are filled correctly and the script compiles, but it appears not to work.
The debug.notifications don't fire at all, and the daggers are not removed from the NPCs inventory.
Does OnEffectStart not work for aimed projectile spells?

Spoiler
Scriptname PO3_CassThrowingDaggerEffect extends activemagiceffectMiscObject Property po3CassThrowingDaggerMiscItem  AutoEvent OnEffectStart(Actor akTarget, Actor akCaster)akCaster.RemoveItem(po3CassThrowingDaggerMiscItem)Debug.Notification("Dagger was removed from" + akCaster.GetBaseObject().GetName())akTarget.AddItem(po3CassThrowingDaggerMiscItem)Debug.Notification("Dagger was added to" + akTarget.GetBaseObject().GetName())EndEvent

(I've posted this in the Quick Questions thread, but didn't get any answers, so posting that here)
User avatar
Jessie Rae Brouillette
 
Posts: 3469
Joined: Mon Dec 11, 2006 9:50 am

Return to V - Skyrim