Just started trying to make water arrows. This is my mgef that's attached to my enchantment that's attached to my explosion which is attached to my projectile.
Scriptname AceWaterArrowScript extends activemagiceffect
Formlist Property MyList Auto ;A formlist with all light sources in it.
Event OnEffectStart(Actor akTarget, Actor akCaster)
ObjectReference LightSource = Game.FindClosestReferenceOfAnyTypeInList(MyList, 0, 0, 0, 10000)
LightSource.Disable()
LightSource.Delete()
EndEvent
The water arrow explodes with a water splash so the explosion is going off. I added every light to the formlist for testing purposes. I'm not even sure how I'm going to swap the lit meshes for put out meshes or how I'd make sure the lights come back after a while. Off to a great start!
Anyway, my script doesn't seem to do anything. Why?