Difference between revisions of "AddItem - ObjectReference"

225 bytes added ,  11:27, 6 April 2017
m
Format notes section as unordered list.
imported>Plplecuyer
 
imported>Qazaaq
m (Format notes section as unordered list.)
 
(2 intermediate revisions by 2 users not shown)
Line 13: Line 13:


== Parameters ==
== Parameters ==
*akItemToAdd: The base form add to this reference's inventory. If this is a base object, it will add a newly-created item. If it is a reference, it will move/remove it from own place/container to this container. If a form list, then it will add aiCount of each item in the list.
*akItemToAdd: The form to add to this reference's inventory. If this is a base object, it will add a newly-created item. If it is a reference, it will move/remove it from its place/container to this container. If it is a form list, then it will add aiCount of each item in the list.
**'''Note''': This can accept non-persistent references in containers.
**'''Note''': This can accept non-persistent references in containers.
*aiCount: How many references to add. Note that this must be one if you are passing in an object reference.
*aiCount: How many references to add. Note that this must be 1 if you are passing in an object reference.
**'''Default:''' 1
**'''Default:''' 1
*abSilent: If true, no message will be printed to the screen
*abSilent: If true, no message will be printed to the screen
Line 33: Line 33:
Chest.AddItem(SpecialGemRef)
Chest.AddItem(SpecialGemRef)
</source>
</source>
== Note ==
*Making ''akItemToAdd'' a form list does not work resulting in "error: (<formlistID>): cannot be put in a container." regardless if defined or cast as one. Using the console version "additem" does work however.


== See Also ==
== See Also ==
Anonymous user