Difference between revisions of "AddItem"
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 | *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> |