GetEquippedSpell - Actor

From the CreationKit Wiki
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Gets the spell the actor currently has equipped in the specified source.

Syntax

Spell Function GetEquippedSpell(int aiSource) native

Parameters

  • aiSource: The source to get the spell from.
    • One of the following values is acceptable:
      • 0: Left hand
      • 1: Right hand
      • 2: Other
      • 3: Instant

Return Value

The spell currently equipped in the specified source.

Examples

; Does Bob have fireball in his left hand?
if (Bob.GetEquippedSpell(0) == FireballProperty)
  Debug.Trace("Bob has fireball in his left hand")
endIf

See Also