Mod:Creation Kit/AddSpell - Actor

Member of: Mod:Creation Kit/Actor Script

Adds the specified spell to this actor.

Syntax
bool Function AddSpell(Spell akSpell, bool abVerbose = true) native

Parameters

 * akSpell: The spell to add to this actor.
 * abVerbose: Pass false to suppress UI messages for spells added to the player. Spells added to NPCs never result in a UI message.
 * Default: True

Return Value
True on success.

Examples
if (Game.GetPlayer.AddSpell(SheepSpellProperty)) Debug.Trace("Sheep spell added to the player") endIf if (Game.GetPlayer.AddSpell(SheepSpellProperty, false)) Debug.Trace("Sheep spell added to the player (like a ninja!)") endIf
 * Adds the sheep spell to the player
 * Adds the sheep spell to the player, silently