User Tools

Site Tools


add_tile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
add_tile [2020/06/07 17:46] justinadd_tile [2023/01/02 21:13] (current) justin
Line 13: Line 13:
 |coordinate|Position of the new [[tile|tile]].|[[coordinate|Coordinate]]|Yes| |coordinate|Position of the new [[tile|tile]].|[[coordinate|Coordinate]]|Yes|
 |entity_id|Unique [[entity|entity]] ID that will be assigned.|[[string|String]]|No| |entity_id|Unique [[entity|entity]] ID that will be assigned.|[[string|String]]|No|
 +
 +^Return Value^Description^Type^
 +|Tile Added|Returns a reference to the [[tile]] that was added.|[[Entity]]|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 20: Line 23:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-add_tile("wooden_floor_02", coord[10, 0, -1], "bridge")+add_tile("wooden_floor_02", coord[10, 0, -1], "bridge");
 </code> </code>
 //Results:// A new [[tile|tile]], using model "wooden_floor_02", will be added to the [[map|map]] at [[coordinate|coordinate]] (10, 0, -1) and given an ID of "bridge". //Results:// A new [[tile|tile]], using model "wooden_floor_02", will be added to the [[map|map]] at [[coordinate|coordinate]] (10, 0, -1) and given an ID of "bridge".
add_tile.1591577209.txt.gz · Last modified: 2020/06/07 17:46 by justin