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
Next revisionBoth sides next revision
add_tile [2017/07/31 13:23] justinadd_tile [2018/03/16 09:44] justin
Line 4: Line 4:
 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 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.
  
 +====Signature:====
 <code python> <code python>
 add_tile(model_name, coordinate, entity_id) add_tile(model_name, coordinate, entity_id)
Line 21: Line 22:
 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, using model "wooden_floor_02" will be added to the map at coordinate (10, 0, -1) and given an ID of "bridge".+//Results:// A new tile, using model "wooden_floor_02"will be added to the map at coordinate (10, 0, -1) and given an ID of "bridge".
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
add_tile.txt · Last modified: 2023/01/02 21:13 by justin