- Found in:
- SKSE
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
Parameters
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
- Actor
- Actor.IsEquipped(...)
- Actor.UnequipItem(...)
