This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
add_tile [2020/04/22 17:03] – justin | add_tile [2020/04/22 17:30] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Adds a tile at the specified coordinate within the map (if a tile does not already exist at that coordinate). The entity ID is optional and will be assigned to the new tile if supplied. | + | Adds a [[tile]] at the specified |
====Signature: | ====Signature: | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |model_name|Model to use for the new tile.|[[String]]|Yes| | + | |model_name|Model to use for the new [[tile]].|[[String]]|Yes| |
- | |coordinate|Position of the new tile.|[[Coordinate]]|Yes| | + | |coordinate|Position of the new [[tile]].|[[Coordinate]]|Yes| |
- | |entity_id|Unique entity ID that will be assigned.|[[String]]|No| | + | |entity_id|Unique |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | After adding a new tile, you can use the [[Modify Navigation]] function to make the tile walkable from any adjacent tiles. For example, if you add a bridge tile on top of a river, you'll need to update the navigation to allow the player | + | After adding a new [[tile]], you can use the [[Modify Navigation]] function to make the [[tile]] walkable from any adjacent tiles. For example, if you add a bridge |
</ | </ | ||
Line 22: | Line 22: | ||
add_tile(" | add_tile(" | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> |