Created
March 11, 2016 13:42
-
-
Save qoh/a1ddea37179e2bb59d90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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