RemoveSpell extends ObjectReference Event OnSpellCast (Form akSpell) Self.RemoveSpell (akSpell)endEvent
But I get back this error when compiling:
(4,8): RemoveSpell is not a function or does not exist
Not very good at this stuff, so if someone could tell me how to get something like this to work I would be happy. I can get it to work from a "magic effect" instead of from the NPC, but I would like it done at the NPC level.
EDIT: Okay I think I understand why it's not working. It's referring to an object casting a spell and not an actor, I think. Still not sure how to fix it, though.
