UnequipItem - Actor
Jump to navigation
Jump to search
Member of: Actor Script
Forces this actor to unequip the specified item, preventing equipping if requested.
Syntax[edit | edit source]
Function UnequipItem(Form akItem, bool abPreventEquip = false, bool abSilent = false) native
Parameters[edit | edit source]
- akItem: The item the actor should unequip.
- abPreventEquip: If true, prevents the actor (or player) from equipping the item.
- Default: False
- abSilent: Should the unequip message be silenced?
- Default: False
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Force the player to unequip the tutu - but they can equip it
Game.GetPlayer().UnequipItem(TutuProperty)
; Force Sally to unequip the dress - but they can't equip it
Sally.UnequipItem(DressProperty, true)