Can anyone suggest a way to apply a magic effect script to any object in the game world? I have a Papyrus script applied to a Magic Effect I created which currently extends ActiveMagicEffect, however ActiveMagicEffect only seems to have the function to return a target of type Actor. I am wondering if there is a way to use the "self" to get a reference to any object targeted by the spell, eg. a barrel. I haven't been able to get this to work so far. I am still trying to understand the Papyrus scripting language. In Oblivion I seem to remember I could just make a SpellEffect that went:
begin ScriptEffectStart set spellTarget to getSelf spellTarget.doSomethingend
So I am trying to figure out how to do this for Skyrim. I don't really know which Event to use either.
I would appreciate any help!


