ENET
|
  |
| Joined: 01 Jan 2010 |
| Total Posts: 4820 |
|
|
| 07 Apr 2012 06:54 PM |
To use this you simply edit the building string....
Two enters = y increment One enter = z increment 0-9 a-f = blocks A space = no effected change to that block, but increment the x
...:
building = [==[ 00000000000000000000000000000 09999999999999999999999999990 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09999999999999999999999999990 00000000000000000000000000000
00000000000000000000000000000 09999999999999999999999999990 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09999999999999999999999999990 00000000000000000000000000000
00000000000000000000000000000 09999999999999999999999999990 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09999999999999999999999999990 00000000000000000000000000000
00000000000000000000000000000 09999999999999999999999999990 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09999999999999999999999999990 00000000000000000000000000000
00000000000000000000000000000 09999999999999999999999999990 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09000000000000000000000000090 09999999999999999999999999990 00000000000000000000000000000 ]==]
local terrain = workspace.Terrain; local setcell = terrain.SetCell;
local position = workspace.ENET.Torso.Position; local pos = terrain:WorldToCell(position); local x0, y0, z0 = pos.X, pos.Y-1, pos.Z; local codeon = "0123456789abcdef"; local x,y,z = 0, 0, 0; local char; local land; local last; for i = 2,#building do char = building:sub(i,i); if(char == string.char(10))then if(last == char)then y = y + 1; x = 0; z = 0; else z = z + 1; x = 0; end else land = codeon:find(char); if(land)then setcell(terrain, x+x0,y+y0,z+z0, land-1, 0, 0); x = x + 1; elseif(char == ' ')then x = x + 1; end end last = char; end |
|
|
| Report Abuse |
|