Difference between revisions of "AddItem"

11 bytes removed ,  06:20, 11 May 2007
m
forgot to change some stuff from c'n'p
imported>DragoonWraith
(get rid of those annoying messages!)
imported>DragoonWraith
m (forgot to change some stuff from c'n'p)
Line 22: Line 22:
* This will not trigger [[OnAdd]] blocks, because the item is created inside the inventory rather than actually being added. For creating items from the console that you need to trigger OnAdd, use [[PlaceAtMe]] instead and pick the item up from the ground.
* This will not trigger [[OnAdd]] blocks, because the item is created inside the inventory rather than actually being added. For creating items from the console that you need to trigger OnAdd, use [[PlaceAtMe]] instead and pick the item up from the ground.


*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 added. In many situations, this is very annoying, but you can use a blank [[Message]] call to prevent it from happening, like so:
<pre>Message ""
<pre>Message ""
player.AddItem "item ID" 1</pre>
player.AddItem "item ID" 1</pre>