Just started trying to make water arrows. This is my mgef script 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.
Projectile Property ProjectileSelf Auto ;Not doing anything at the moment.
Event OnEffectStart(Actor akTarget, Actor akCaster)
ObjectReference LightSource = Game.FindClosestReferenceOfAnyTypeInList(MyList, akTarget.X, akTarget.Y, akTarget.Z, 300)
LightSource.Delete()
EndEvent
Right now it's looking for a target actor which means it's not going to work unless one is within the radius. I'm not sure how to point it at itself which is what I need help with. Any help with exchanging the lit meshes with the unlit meshes or making the light source come back after a while would be much appreciated!