sm.cell.getInteractablesByTag
Returns a table of Interactables which contain the given tag for a cell coordinate.
Kind: Function
Environments: Game
Game
sm.cell.getInteractablesByTag( x, y, tag )
Availability: Server only
Note: Can only be used in a server_onCellLoaded callback.
Parameters:
| Name | Type | Description |
|---|---|---|
x |
integer | The X-coordinate. |
y |
integer | The Y-coordinate. |
tag |
string | A tag to match with. |
Returns:
| Type | Description |
|---|---|
| table | A table {Interactable, ...} of found interactables with matching tag. |