Background for Skyrim SE
Member of the Actor script
voidfunctionUnequipSpell(SpellakSpell, intaiSource)Native

Description

Wiki Description

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

Documentation Comment

Forces this actor to unequip the specified spell. The casting source can be:
0 - Left hand
1 - Right hand


Caveats


Parameters

SpellakSpell

CK Wiki Description

The spell to force the actor to unequip.

intaiSource

CK Wiki Description

The source to unequip the spell from.

  • One of the following values is acceptable:* 0:Left hand
    • 1:Right hand
    • 2:Other

Examples

; 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)

Auto-Generated Example

Spell mySpell__akSpell
int myInt__aiSource

myActor__toCallFunctionOn.UnequipSpell(mySpell__akSpell, myInt__aiSource)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.