SetActiveSpell

From The Elder Scrolls Construction Set Wiki


Deprecated function This script function is documented but either not implemented or else superceded by another function. Please do not use this function in your mod; alternatives are offered in the article.

A command for Oblivion Script Extender

This function is deprecated in favor of Oblivion's SelectPlayerSpell

Note that this command duplicates a function from vanilla Oblivion: SelectPlayerSpell

Syntax:

SetActiveSpell [spell ID]

Sets the player's current spell to the specified spell.

[edit] Example

SetActiveSpell StandardFireDamageTarget1Novice

[edit] Notes

  • If you set the active spell to a spell unknown to the player, the player will be granted access to the spell until another active spell is set (by the user or by script).

[edit] See Also