Copy the base actor then create a summon spell for your copy.
Then add an actor script not sure what event on the actor script maybe onload.
Easier to make the spell just fail under the wrong conditions.
Ok, if I understood well, you mean to add a script directly on the summoned actor. I thought it, but onload doesn't have parameters, so I can't kill it.