Background for Skyrim SE
Member of the iEquip_InventoryExt script
voidfunctionEquipItem(Forma_item, inta_refHandle, Actora_actor, inta_equipSlot=0, boola_preventUnequip=false, boola_equipSound=true)NativeGlobal

Description

Documentation Comment

@brief Equips the given item to the given actor.
@param a_item The item to equip.
@param a_refHandle The handle to the item.
@param a_actor The actor to equip the item to.
@param a_equipSlot The slot to equip the item to.
@param a_preventUnequip If True, prevents the player from unequiping the item.
@param a_equipSound If True, plays the equip sound.
@notes Valid equip slots:
0 - Default
1 - Right hand
2 - Left hand


Parameters

  1. Forma_item

  2. inta_refHandle

  3. Actora_actor

  4. inta_equipSlot=0

  5. boola_preventUnequip=false

  6. boola_equipSound=true


Examples

Auto-Generated Example

Form myForm__a_item
int myInt__a_refHandle
Actor myActor__a_actor
int myInt__a_equipSlot
bool myBool__a_preventUnequip
bool myBool__a_equipSound

iEquip_InventoryExt.EquipItem(myForm__a_item, myInt__a_refHandle, myActor__a_actor, myInt__a_equipSlot, myBool__a_preventUnequip, myBool__a_equipSound)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.