Background for Skyrim SE
Member of the Actor script
voidfunctionUnequipItemEx(Formitem, intequipSlot=0, boolpreventEquip=false)Native

Description

Wiki Description

Forces this actor to equip the specified item at the specified slot.

Documentation Comment

unequips item at the given slot


Caveats

CK Wiki - Notes

  • If the Specified form is not in the specified slot then the function will fail.

Parameters

Formitem

intequipSlot=0

boolpreventEquip=false


Examples

;Force the player to unequip swordProperty from the Default slot
Game.GetPlayer().UnequipItemEx(swordProperty)
; Force Terion to unequip a Dagger from his Left hand and prevent it being requipped.
Terion.UnequipItemEx(DaggerProperty, 2, True)

Auto-Generated Example

Form myForm__item
int myInt__equipSlot
bool myBool__preventEquip

myActor__toCallFunctionOn.UnequipItemEx(myForm__item, myInt__equipSlot, myBool__preventEquip)

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.