User Tools

Site Tools


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
tile [2021/04/28 23:05] justintile [2021/04/30 11:03] justin
Line 5: Line 5:
  
 =====Scripting===== =====Scripting=====
-(Ways to references tiles, e.g. tile[x, y, z], entity["my_tile"], self, etc.+Refer to the table below for a list of tile properties that can be accessed from a [[script]]. If the property can be assigned new value using an assignment statementit will be noted in the description.
-(Ways to add tiles, remove tiles, change tile's model, change its default animationetc.+
 ^Property^Description^ ^Property^Description^
 |<tile>.id|Entity ID of the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the ID of the tile.| |<tile>.id|Entity ID of the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the ID of the tile.|
Line 15: Line 13:
 |<tile>.groups|An [[array]] of [[groups]] to which the tile is assigned. The [[array]] will be empty if the tile is not assigned to any [[groups]].| |<tile>.groups|An [[array]] of [[groups]] to which the tile is assigned. The [[array]] will be empty if the tile is not assigned to any [[groups]].|
 |<tile>.tags|An [[array]] of tags (as [[string|strings]]) for the tile, as set in the [[Voxel Editor]] from the [[Model Properties]] panel.| |<tile>.tags|An [[array]] of tags (as [[string|strings]]) for the tile, as set in the [[Voxel Editor]] from the [[Model Properties]] panel.|
-|<tile>.interact_cursor|Interaction cursor for the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the interaction cursor for the tile. Valid values include "default", "walk", "interact", "speak", "attack", or any custom cursor defined in the [[game configuration]].|+|<tile>.interact_cursor|Interaction cursor for the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the interaction cursor for the tile. Valid values include "default", "walk", "interact", "speak", "attack", or any custom cursor defined in your [[game configuration]].|
  
 ~~NOTOC~~ ~~NOTOC~~
tile.txt · Last modified: 2024/03/14 09:44 by justin