Difference between revisions of "HasSpell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(not a record variable function)
(HasSpell bug on creatures is fixed on the first version on xOBSE. Report)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
* Must be called on a reference.
* Must be called on a reference.
* Returns true if the reference has the specified spell.
* Returns true if the reference has the specified spell.
==Bugs==
* Return always 0 on Creatures. (Fixed on xOBSE 21.5)


[[Category: Functions]]
[[Category: Functions]]

Latest revision as of 17:17, 25 February 2024

A command for Oblivion Script Extender

Syntax:

(hasSpell:bool) reference.HasSpell spell:ref

Returns whether the NPC has the specified spell.

Notes[edit | edit source]

  • Must be called on a reference.
  • Returns true if the reference has the specified spell.


Bugs[edit | edit source]

  • Return always 0 on Creatures. (Fixed on xOBSE 21.5)