This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
add_item_to_container [2019/12/22 15:21] – created justin | add_item_to_container [2020/01/17 09:30] – justin | ||
---|---|---|---|
Line 6: | Line 6: | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | add_item_to_container(entity_id, item_id, count) | + | add_item_to_container(entity, item_id, count) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity_id|Entity ID of the container | + | |entity|Container entity |
|item_id|ID of the item (as assigned in the [[Item Editor]]).|[[String]]|Yes| | |item_id|ID of the item (as assigned in the [[Item Editor]]).|[[String]]|Yes| | ||
- | |count|Number of the item to add (defaults to 1).|[[Number]]|No| | + | |count|Number of the item to add (defaults to 1).|[[Decimal]]|No| |
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | add_item_to_container(" | + | add_item_to_container(self, " |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
Line 29: | Line 29: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki:give_item_node.png? | + | {{:wiki:add_item_to_container_node.png? |
</ | </ | ||