imported>Quetzilla |
imported>Wrye |
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]] |