Difference between revisions of "UnequipItem"
Jump to navigation
Jump to search
imported>Vswe m (Added Search Terms) |
imported>DragoonWraith (note about the EquipItem flag) |
||
Line 7: | Line 7: | ||
Forces the actor to unequip the object. If NoEquipFlag = 1, actor (including the player) will be unable to equip the object. | Forces the actor to unequip the object. If NoEquipFlag = 1, actor (including the player) will be unable to equip the object. | ||
==See Also== | == Note == | ||
* UnequipItem (and [[UnequipItemNS]]) are the only ways to remove items that have been equipped with [[EquipItem]] with its "no-unequip" flag set to 1. To check for this flag before calling UnequipItem (to avoid unequipping items that you shouldn't), try using EquipItem ''without the flag'' on another item that uses the same slot. If the flag has been set on the currently equipped item, the script will be unable to equip a new item over it. | |||
== See Also == | |||
*[[UnequipItemNS]] - Spamless version of command (OBSE 15) | *[[UnequipItemNS]] - Spamless version of command (OBSE 15) | ||
*[[EquipItem]] | *[[EquipItem]] |
Latest revision as of 20:59, 14 February 2009
Syntax:
UnequipItem ObjectID NoEquipFlag
Example:
UnequipItem FavoriteCuirass player.UnequipItem AmuletOfKings 1
Forces the actor to unequip the object. If NoEquipFlag = 1, actor (including the player) will be unable to equip the object.
Note[edit | edit source]
- UnequipItem (and UnequipItemNS) are the only ways to remove items that have been equipped with EquipItem with its "no-unequip" flag set to 1. To check for this flag before calling UnequipItem (to avoid unequipping items that you shouldn't), try using EquipItem without the flag on another item that uses the same slot. If the flag has been set on the currently equipped item, the script will be unable to equip a new item over it.
See Also[edit | edit source]
- UnequipItemNS - Spamless version of command (OBSE 15)
- EquipItem
- Message Spam - Avoiding message spam.
- Generic Unequip - Unequipping an item knowing its editor id.