HasEquippedSpell

Revision as of 00:03, 11 July 2024 by Inforgreen3 (talk | contribs) (Listed an alternative way to achieve the function of HasEquippedSpell)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

HasEquippedSpell or HasSpell will indicate whether or not the reference actor has a spell equipped at a particular Casting Source.

Syntax

[actor].HasSpell SpellID Source

Example

player.HasSpell flames Right

This'll return 1.0 if the actor currently has the spell SpellID equipped at the "Right" Casting Source.

NotesEdit

HasEquippedSpell is currently broken as a condition function. There is no selectable parameter for the Spell ID. Instead consider trying to combine spellhaskeyword and spellhascastingperk in a way where only the desired spell is likely to be described, or adding a unique keyword to the spells you wish to detect.

See AlsoEdit

EquipSpell

Papyrus VersionEdit

GetEquippedSpell - Actor