addCommandHandler("createColSphere",function(player,_)
x,y,z = getElementPosition(player)
col = createColSphere(x,y,z,5)
setElementDimension(col,6666)
setElementInterior(col,12)
outputChatBox("The dimension of this element is "..getElementDimension(col)..".",player,255,255,255,false)
-- Output : The dimension of this element is 6666.
outputChatBox("The interior of this element is "..getElementInterior(col)..".",player,255,255,255,false)
-- Output : The interior of this element is 12.
end
)
addCommandHandler("createColCircle",function(player,_)
x,y,z = getElementPosition(player)
col = createColCircle(x,y,z,5)
setElementDimension(col,6666)
setElementInterior(col,12)
outputChatBox("The dimension of this element is "..getElementDimension(col)..".",player,255,255,255,false)
-- Output : The dimension of this element is 6666.
outputChatBox("The interior of this element is "..getElementInterior(col)..".",player,255,255,255,false)
-- Output : The interior of this element is 12.
end
)
addCommandHandler("createColCuboid",function(player,_)
x,y,z = getElementPosition(player)
col = createColCuboid(x,y,z,5,5,5)
setElementDimension(col,6666)
setElementInterior(col,12)
outputChatBox("The dimension of this element is "..getElementDimension(col)..".",player,255,255,255,false)
-- Output : The dimension of this element is 6666.
outputChatBox("The interior of this element is "..getElementInterior(col)..".",player,255,255,255,false)
-- Output : The interior of this element is 12.
end
)
addCommandHandler("createColPolygon",function(player,_)
x,y,z = getElementPosition(player)
col = createColPolygon(x,y,z,x+5,y+5,z+5,x-5,y-5,z-5) -- I know its wrong but I want to check only.
setElementDimension(col,6666)
setElementInterior(col,12)
outputChatBox("The dimension of this element is "..getElementDimension(col)..".",player,255,255,255,false)
-- Output : The dimension of this element is 6666.
outputChatBox("The interior of this element is "..getElementInterior(col)..".",player,255,255,255,false)
-- Output : The interior of this element is 12.
end
)
addCommandHandler("createColRectangle",function(player,_)
x,y,z = getElementPosition(player)
col = createColRectangle(x,y,10,10)
setElementDimension(col,6666)
setElementInterior(col,12)
outputChatBox("The dimension of this element is "..getElementDimension(col)..".",player,255,255,255,false)
-- Output : The dimension of this element is 6666.
outputChatBox("The interior of this element is "..getElementInterior(col)..".",player,255,255,255,false)
-- Output : The interior of this element is 12.
end
)
addCommandHandler("createColTube",function(player,_)
x,y,z = getElementPosition(player)
col = createColTube(x,y,z,5,5)
setElementDimension(col,6666)
setElementInterior(col,12)
outputChatBox("The dimension of this element is "..getElementDimension(col)..".",player,255,255,255,false)
-- Output : The dimension of this element is 6666.
outputChatBox("The interior of this element is "..getElementInterior(col)..".",player,255,255,255,false)
-- Output : The interior of this element is 12.
end
)