This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
add_tile [2017/07/29 19:00] – created justin | add_tile [2021/04/21 18:57] – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Add Tile====== | ======Add Tile====== | ||
---- | ---- | ||
+ | |||
+ | Adds a [[tile|tile]] at the specified [[coordinate|coordinate]] within the [[map|map]] (if a [[tile|tile]] does not already exist at that [[coordinate|coordinate]]). The [[entity|entity]] ID is optional and will be assigned to the new [[tile|tile]] if supplied. | ||
+ | |||
+ | ====Signature: | ||
+ | <code python> | ||
+ | add_tile(model_name, | ||
+ | </ | ||
+ | |||
+ | ^Argument^Description^Type^Required^ | ||
+ | |model_name|Model to use for the new [[tile|tile]].|[[string|String]]|Yes| | ||
+ | |coordinate|Position of the new [[tile|tile]].|[[coordinate|Coordinate]]|Yes| | ||
+ | |entity_id|Unique [[entity|entity]] ID that will be assigned.|[[string|String]]|No| | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | After adding a new [[tile|tile]], | ||
+ | </ | ||
+ | |||
+ | ====Example: | ||
+ | <code bauxite> | ||
+ | add_tile(" | ||
+ | </ | ||
+ | // | ||
+ | |||
+ | <WRAP center round tip 100%> | ||
+ | Use the **Add Tile** function to place a bridge across a river or chasm after the player performs a certain action, opening up a new area for them to explore. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP half column> | ||
+ | ====Editor Node:==== | ||
+ | {{: | ||
+ | </ | ||
+ | |||
+ | <WRAP half column> | ||
+ | ====Visual Demo:==== | ||
+ | {{: | ||
+ | </ | ||
+ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |