sm.cell.getNodesByTag

Returns a table of nodes which contains the given tag for a cell coordinate.

Kind: Function

Environments: Game

Game

sm.cell.getNodesByTag( x, y, tag, world )

Open the full Game reference

Parameters:

Name Type Description
x integer X-coordinate.
y integer Y-coordinate.
tag string Tag to match with.
world (optional) world The world we are searching in. (Optional, defaults to current world)

Returns:

Type Description
table Table containing { position = Vec3, rotation = Quat, scale = Vec3, tags = {string, ...}, params = table } for each node.