If I toggle it on the 'Detect Life Starting' message shows, but when I toggle it off, no message shows, and the detect life effects continue. Then when I toggle it again (back on) it shows the starting message, and then the ending message right after it, and the effect continues being on. Also, randomly when I kill stuff it sometimes seems to turn off, and at some other times and I dont understand why.
I'm pretty sure my detect life spell works fine, I'm pretty sure the toggle spell works fine, I think the issue must have to do with abilities and/or the updating. Also i have the detectUpdateInt set to 2 seconds and the duration of the detect life spell is set to 3 seconds. If anyone can shed some light on this for me I would appreciate it.
Scriptname DetectLifeSpellScript extends activemagiceffectSPELL PROPERTY DetectLifeSpell AUTOINT PROPERTY detectUpdateInt AUTOACTOR targetEVENT OnEffectStart(ACTOR akTarget, ACTOR akCaster) debug.Notification("Detect Life Starting") target = akCaster DetectLifeSpell.Cast(target) RegisterForSingleUpdate(detectUpdateInt)ENDEVENTEVENT OnUpdate() Utility.Wait(0.1) DetectLifeSpell.Cast(target) RegisterForSingleUpdate(detectUpdateInt)ENDEVENTEVENT OnEffectFinish(ACTOR akTarget, ACTOR akCaster) target.DispelSpell(DetectLifeSpell) debug.Notification("Detect Life Ending")ENDEVENT