Difference between revisions of "UnequipItem"

258 bytes added ,  08:42, 15 June 2007
Extra spam info
imported>DragoonWraith
(adding a link to Preventing Messages)
imported>Haama
(Extra spam info)
Line 10: Line 10:
==Notes==
==Notes==


*By default, using this function on the player will display a message informing the player that the item in question has been unequipped. In almost all situations, this is very annoying, but you can use a blank [[Message]] call to prevent it from happening, like so:
*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 ""
<pre>Message " "
Message " "
player.UnequipItem "item ID"</pre>
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.


==See Also==
==See Also==
Anonymous user