So far I have
Scriptname SIMSUnlockScript extends ActiveMagicEffectObjectReference property target autoObjectReference property doorRef autoActor casterObjectReference casterRefObjectReference doorToOpenfloat xPosfloat yPosfloat zPosEvent OnEffectStart(Actor akTarget, Actor akCaster)caster = akCaster;casterRef = (caster as ObjectReference)target.Enable()target.MoveTo(caster)xPos = target.GetPositionX()yPos = target.GetPositionY()zPos = target.GetPositionZ()doorToOpen = game.FindClosestReferenceOfType(doorRef, xPos, yPos, zPos, 5)doorToOpen.lock(false)endEVENT
But this doesn't seem to work at all.
So I thought of using http://www.creationkit.com/RegisterForAnimationEvent_-_Form to and then a light projectile like Mage Light, so when a door plays that animation, it unlocks. But I'm not sure where to start there.
Any help would be appreciated.

.