Skip to content

Instantly share code, notes, and snippets.

@qoh
Created March 11, 2016 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qoh/a1ddea37179e2bb59d90 to your computer and use it in GitHub Desktop.
Save qoh/a1ddea37179e2bb59d90 to your computer and use it in GitHub Desktop.
local setColor = ts.func("FxDTSBrick", "setColor")
local group = SimSet("BrickGroup_46342")
local width, height = 128, 128
local grid = {}
for x = 1, width do
grid[x] = {}
for y = 1, height do
grid[x][y] = group:getObject((y - 1) * width + (x - 1))
end
end
setColor(grid[1][128], 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment