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>Haama
(Extra spam info)
imported>DragoonWraith
(CS 1.0)
Line 22: Line 22:


[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (CS 1.0)]]
[[Category: Actor Functions]]
[[Category: Actor Functions (CS 1.0)]]
[[Category: Object Functions]]
[[Category: Object Functions]]
[[Category:Actor Functions]]

Revision as of 21:08, 5 July 2007

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

  • 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:
Message " "
Message " "
player.UnequipItem "item ID"

This seems to shortcircuit the message display and will prevent any other messages from being queued or displayed for a couple of seconds. Here are some alternative methods that don't disrupt other messages.

See Also