Difference between revisions of "EquipItem"

333 bytes added ,  19:12, 7 May 2008
imported>Fella
imported>Thorskin
Line 28: Line 28:
player.EquipItem "item ID"</pre>
player.EquipItem "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, so please use it only if you are sure no other messages will be disrupted, or you would create a lot of message spam otherwise.
This seems to shortcircuit the message display and will prevent any other messages from being queued or displayed for a couple of seconds, so please use it only if you are sure no other messages will be disrupted, or you would create a lot of message spam otherwise.
* '''BUG''' :
- If you equip a playable item with the ''NoUnequipFlag'' set to 1 on a NPC, a subsequent call of [[RemoveAllItems]] on this NPC will crash the game.
- If you equip a playable non-quest item with the ''NoUnequipFlag'' set to 1 on the player, a subsequent call of [[RemoveAllItems]] on the player will crash the game.


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