Difference between revisions of "HasSpell - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>Kahmul
Line 19: Line 19:
<source lang="papyrus">
<source lang="papyrus">
; Does the player have the super spell?
; Does the player have the super spell?
if (Game.GetPlayer.HasSpell(SuperSpell))
if (Game.GetPlayer().HasSpell(SuperSpell))
   Debug.Trace("The player has the super spell")
   Debug.Trace("The player has the super spell")
endIf
endIf

Revision as of 10:49, 15 March 2012

Member of: Actor Script

Checks to see if this actor has the given Spell or Shout.

Syntax

bool Function HasSpell(Form akForm) native

Parameters

Return Value

Whether the actor has the given Spell or Shout or not.

Examples

; Does the player have the super spell?
if (Game.GetPlayer().HasSpell(SuperSpell))
  Debug.Trace("The player has the super spell")
endIf

See Also