Difference between revisions of "EquipItem"

588 bytes removed ,  19:49, 31 May 2008
Consolidate no spam info.
imported>Quetzilla
imported>Wrye
(Consolidate no spam info.)
Line 23: Line 23:
endif</pre>
endif</pre>


*By default, using this function on the player will display a message informing the player that the item in question has been equipped. In many situations, this is very annoying, but you can use a pair of blank [[Message]] calls to prevent it from happening, like so:
* See [[Message Spam]] to avoid unwanted "Item Equipped" messages.
<pre>Message " "
Message " "
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.
*OBSE 0015 provides [[EquipItemNS]] which works exactly the same as EquipItem but without displaying any messages.


* '''BUG''' :
* '''BUG''' :
Line 36: Line 31:


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


[[Category: Functions]]
[[Category: Functions]]
Anonymous user