This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "UnequipItem"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Quetzilla
imported>Wrye
(Consolidating no spam info.)
Line 12: Line 12:
UnequipItem requires that the base object be specified. For a single script that works for different items, see [[Generic Unequip]].
UnequipItem requires that the base object be specified. For a single script that works for different items, see [[Generic Unequip]].


*'''Message Spam:'''
* See [[Message Spam]] to avoid unwanted "Item unequipped" messages.
By default, using this function on the player will display a message informing the player that the item in question has been unequipped. player. In many situations, this is very annoying, but you can use a pair of blank [[Message]] calls to prevent it from happening, like so:
<pre>Message " "
Message " "
player.UnequipItem "item ID"</pre>
*This seems to shortcircuit the message display and will prevent any other messages from being queued or displayed for a couple of seconds. [[Avoiding Message Spam|Here]] are some alternative methods that don't disrupt other messages.
*OBSE 0015 provides [[UnequipItemNS]] which works exactly the same as UnequipItem but without displaying any messages.


==See Also==
==See Also==
*[[UnequipItemNS]]
*[[UnequipItemNS]] - Spamless version of command (OBSE 15)
*[[EquipItem]]
*[[EquipItem]]
*[[Preventing messages]]
*[[Message Spam]] - Avoiding message spam.





Revision as of 19:52, 31 May 2008

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.

Notes

UnequipItem requires that the base object be specified. For a single script that works for different items, see Generic Unequip.

  • See Message Spam to avoid unwanted "Item unequipped" messages.

See Also