I need spell that works like a banish spell, but on almost any type of NPC. I set it up as a modify value type spell with this script attached.
Scriptname LM_maskpowerScript extends activemagiceffect {Disables target instance. This may be dangerous for use as a spell. Not sure yet.}actor targetEvent OnEffectStart(Actor akTarget, Actor akCaster) debug.messagebox("Script initiated.") target = self.getTargetActor() utility.wait(3.0) target.disable(true)endevent
I added the message box just to make sure the script was actually starting at all. I get no errors in CK. In game, the message box displays but the actor is not disabled. I feel like this may not be the best was to do it anyway, as it seems dangerous to just go around disabling actors. Any ideas?