Background for Skyrim SE
Member of the Actor script
voidfunctionEquipItemById(Formitem, intitemId, intequipSlot=0, boolpreventUnequip=false, boolequipSound=true)Native

Description

Wiki Description

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

Documentation Comment

equips item with matching itemId at the given slot


Caveats

CK Wiki - Notes


Parameters

Formitem

intitemId

intequipSlot=0

boolpreventUnequip=false

boolequipSound=true


Examples

;Force the player to equip swordProperty to the Default slot
Game.GetPlayer().EquipItemEx(swordProperty, swordProperty.GetFormID())
; Force Ralof to equip a Dagger to his Left hand and do not suppress the sound.
Ralof.EquipItemEx(DaggerProperty, DaggerProperty.GetFormID(), 2, false, false )

Auto-Generated Example

Form myForm__item
int myInt__itemId
int myInt__equipSlot
bool myBool__preventUnequip
bool myBool__equipSound

myActor__toCallFunctionOn.EquipItemById(myForm__item, myInt__itemId, myInt__equipSlot, myBool__preventUnequip, myBool__equipSound)

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.