Background for Fallout 4
Member of the Actor script
boolfunctionHasSpell(FormakForm)Native

Description

Wiki Description

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

Documentation Comment

Checks to see if this actor has the given Spell


Caveats


Parameters

FormakForm

CK Wiki Description

The Spell or Shout to check.


Examples

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

Auto-Generated Example

Form myForm__akForm

bool returnedValue = myActor__toCallFunctionOn.HasSpell(myForm__akForm)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.