EquipItemEx - Actor
Revision as of 20:04, 27 February 2013 by imported>Wafflesalot (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Actor Script Forces this actor to equip the specified item at the specified slot. == ...")
SKSE Member of: Actor Script
Forces this actor to equip the specified item at the specified slot.
Syntax
Function EquipItemEx(Form item, int equipSlot = 0, bool preventUnequip = false, bool equipSound = true) native
Parameters
- item - The Form of the item to equip.
- equipSlot - The slot you wish to equip the item to.
- Default Slot = 0
- Right Hand Slot = 1
- Left Hand Slot = 2
- preventUnequip - If true, will prevent unequipping of the item for the actor.
- equipSound - If true, no sound will be played on the equip.
Examples
:Force the player to equip swordProperty to the Default slot
Game.GetPlayer().EquipItemEx(swordProperty)
; Force Ralof to equip a Dagger to his Left hand and do not suppress the sound.
Ralof.EquipItemEx(DaggerProperty, 2, false, false )