This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
add_item_to_tile [2024/01/29 13:40] – justin | add_item_to_tile [2024/01/29 15:45] – justin | ||
---|---|---|---|
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|tile|[[Tile]] where the [[item]] will be placed.|[[Entity]]|Yes| | |tile|[[Tile]] where the [[item]] will be placed.|[[Entity]]|Yes| | ||
- | |item| |[[String]]|Yes| | + | |item|ID of the [[item]] (as defined in the [[Item Editor]]).|[[String]]|Yes| |
- | |count| |[[Number]]|No| | + | |count|How many of the [[item]] to place on the [[tile]] (defaults to 1).|[[Number]]|No| |
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | add_item_to_tile(); | + | add_item_to_tile(entity[" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Add Item To Tile** function to... | + | Use the **Add Item To Tile** function to pre-populate a [[map]] with [[item]] pickups for the player via the map's pre-load [[script]]. |
</ | </ | ||