RemoveSpell - Actor
Member of: Actor Script
Removes the specified spell from this actor.
bool Function RemoveSpell(Spell akSpell) native
- akSpell: The spell to remove from this actor.
True on success.
; Removes the sheep spell from the player if (Game.GetPlayer().RemoveSpell(SheepSpellProperty)) Debug.Trace("Sheep spell removed from the player") endIf
This function will not succeed in removing spells that an actor has inherited from its ActorBase or Race. But it WILL still return true in such cases, even though the spell is not actually removed.