Difference between revisions of "RemoveItem"
no edit summary
imported>Haama (→Notes: Note on equipped item crashes) |
imported>Quetzilla |
||
Line 32: | Line 32: | ||
player.RemoveItem "item ID" 1</pre> | player.RemoveItem "item ID" 1</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. | *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. | ||
<li>OBSE 0015 provides [[RemoveItemNS]] which works exacly the same as RemoveItem but without displaying any messages</li> | |||
<li>When you remove an item while the player's inventory menu ([[MenuMode]] 1002) is open, the item will remain visible even though it's really not there. To refresh the menu after removing the item, use</li> | <li>When you remove an item while the player's inventory menu ([[MenuMode]] 1002) is open, the item will remain visible even though it's really not there. To refresh the menu after removing the item, use</li> | ||
Line 54: | Line 56: | ||
==See Also== | ==See Also== | ||
*[[RemoveItemNS]] | |||
*[[AddItem]] | *[[AddItem]] | ||
*[[GetItemCount]] | *[[GetItemCount]] |