UnequipSpell - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Forces the actor to equip the specified spell in the specified source.

Syntax[edit | edit source]

Function UnequipSpell(Spell akSpell, int aiSource) native

Parameters[edit | edit source]

  • akSpell: The spell to force the actor to unequip.
  • aiSource: The source to unequip the spell from.
    • One of the following values is acceptable:
      • 0: Left hand
      • 1: Right hand
      • 2: Other

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Forces bob to unequip ward from his right hand
Bob.UnequipSpell(WardProperty, 1)


; Forces bob to unequip Lesser Power from the Voice slot
Bob.UnequipSpell(LesserPowerProperty, 2)

See Also[edit | edit source]