I have set up a Magic Effect with archetype "script", casting type "fire and forget" and delivery "aimed" along with some visual effects. The issue that I'm running into is in the script. Extending ActiveMagicEffect, I find that the OnEffectStart event expects two actor references. One is the caster, but the issue is that the target object I want to activate using the spell is not an actor, but another object type such as a door.
Any ideas how to achieve what I'm looking for?