- Found in:
- SKSE
voidfunctionEquipItemEx(Formitem, intequipSlot=0, boolpreventUnequip=false, boolequipSound=true)Native
Description
Wiki Description
Forces this actor to equip the first item in the specified form's extralist to the specified slot.
Documentation Comment
equips item at the given slot
Caveats
CK Wiki - Notes
- The first item in the extralist will be the last item added. For example, if the player has two steel swords and they enchant one, then poison the other, the poisoned sword will be equipped. Alternatively, if they poison one sword, then enchant the other, the enchanted sword will be equipped.
- See Actor.EquipItemById(...) for adding an item without an extralist.
Parameters
Formitem
intequipSlot=0
boolpreventUnequip=false
boolequipSound=true
Examples
No human-generated examples found for this function.
Auto-Generated Example
Form myForm__item
int myInt__equipSlot
bool myBool__preventUnequip
bool myBool__equipSound
myActor__toCallFunctionOn.EquipItemEx(myForm__item, myInt__equipSlot, myBool__preventUnequip, myBool__equipSound)Related Pages
- Actor
- Actor.IsEquipped(...)
- Actor.UnequipItemEx(...)
