RemoveSpell - Actor

Member of: Actor Script

Removes the specified spell from this actor.

SyntaxEdit

bool Function RemoveSpell(Spell akSpell) native

ParametersEdit

  • akSpell: The spell to remove from this actor.

Return ValueEdit

True on success.

ExamplesEdit

; Removes the sheep spell from the player
if (Game.GetPlayer().RemoveSpell(SheepSpellProperty))
  Debug.Trace("Sheep spell removed from the player")
endIf

NoteEdit

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.

See AlsoEdit