- Found in:
- iEquip
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
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)