RemoveSpell - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Removes the specified spell from this actor.

Syntax

bool Function RemoveSpell(Spell akSpell) native

Parameters

  • akSpell: The spell to remove from this actor.

Return Value

True on success.

Examples

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

Note

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 Also