AddItem

Revision as of 06:35, 26 March 2006 by imported>Deathbane27

Syntax:

AddItem ObjectID, Count 

Example:

AddItem MyObject, 1 

Adds Count items of object ObjectID to the calling container's inventory.

NOTE: 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.


Console Usage: When using AddItem with the console, you must use the desired item's FormID, not the EditorID.

So, instead of using

player.additem lockpick 1

to give yourself a lockpick, you must use

player.additem 00000A 1