local objects = 
{
	-- monstama77
	createObject(18235,1410.7999267578,1533.4675292969,1541.6075439453,0,0,0,20),
	createObject(12960,1443.0174560547,1518.3203125,1540.9155273438,0,4,4,20),
	createObject(18235,1404.4200439453,1520.0180664063,1541.4090576172,0,0,0,20),
	createObject(18235,1420.01171875,1520.125,1541.4188232422,0,0,179.74731445313,20),
	createObject(18235,1412.3619384766,1505.0010986328,1544.4588623047,0,0,0,20),
	createObject(14789,1398.2041015625,1515.505859375,1545.7729492188,0,359.49462890625,0,20),
	createObject(18235,1411.8795166016,1504.9581298828,1544.6143798828,0.248779296875,179.74993896484,357.75231933594,20),
	createObject(18235,1406.3205566406,1531.4432373047,1544.3278808594,0.490234375,180.75,179.73107910156,20),
	createObject(18235,1418.3270263672,1531.4757080078,1544.4421386719,0.4888916015625,180.7470703125,179.73083496094,20),
	createObject(18235,1413.0686035156,1531.3983154297,1544.3499755859,0,0,179.74731445313,20),
	createObject(14789,1425.3116455078,1515.2052001953,1554.7935791016,0.34259033203125,133.24893188477,358.8642578125,20),
	createObject(14789,1415.4946289063,1515.541015625,1537.7199707031,0,223.74792480469,0,20),
	createObject(1280,1410.2493896484,1521.6030273438,1542.0506591797,0,0,122,20),
	createObject(1280,1414.1958007813,1521.7211914063,1542.0745849609,0,0,52.996887207031,20),
	createObject(1280,1410.2490234375,1521.6025390625,1542.0506591797,0,0,122,20),
	createObject(949,1411.0812988281,1522.8298339844,1542.2869873047,0,0,0,20),
	createObject(949,1413.3872070313,1523.0280761719,1542.2971191406,0,0,0,20),
	createObject(1280,1410.2803955078,1520.1838378906,1542.0451660156,0,0,121.99768066406,20),
	createObject(1280,1410.2668457031,1518.6593017578,1542.0450439453,0,0,121.99768066406,20),
	createObject(1280,1410.2786865234,1516.9832763672,1542.0451660156,0,0,121.99768066406,20),
	createObject(1280,1414.1639404297,1519.9444580078,1542.0805664063,0,0,52.992553710938,20),
	createObject(1280,1414.0437011719,1518.4619140625,1542.0799560547,0,0,52.992553710938,20),
	createObject(1280,1414.1878662109,1516.7467041016,1542.0803222656,0,0,52.992553710938,20),
	createObject(950,1413.8653564453,1522.5754394531,1542.2012939453,0,0,320,20),
	createObject(950,1414.5614013672,1522.0372314453,1542.2242431641,0,0,319.99877929688,20),
	createObject(949,1415.1038818359,1521.5718994141,1542.3221435547,0,0,0,20),
	createObject(2203,1414.7028808594,1522.9321289063,1541.8542480469,0,0,0,20),
	createObject(858,1414.7589111328,1522.9152832031,1540.2884521484,0,0,54,20),
	createObject(950,1410.5067138672,1522.4718017578,1542.2004394531,0,0,30.998840332031,20),
	createObject(950,1409.7395019531,1522.0180664063,1542.1821289063,0,0,30.997924804688,20),
	createObject(949,1409.2130126953,1521.6481933594,1542.2707519531,0,0,0,20),
	createObject(2203,1409.7810058594,1522.7166748047,1541.8112792969,0,0,0,20),
	createObject(858,1409.6682128906,1522.8271484375,1540.0700683594,0,0,179.99780273438,20),
	createObject(3806,1412.3797607422,1523.2109375,1544.7270507813,0,0,269.75,20),
	createObject(2345,1412.3520507813,1522.6762695313,1544.5383300781,0,0,0,20),
	createObject(3406,1412.6531982422,1514.3472900391,1550.5654296875,0,0,0,20),
	createObject(3406,1412.810546875,1517.6904296875,1550.5578613281,0,0,0,20),
	createObject(3406,1412.8347167969,1521.2758789063,1550.4154052734,0,0,0,20),
	createObject(5713,1418.1646728516,1502.0484619141,1546.6939697266,0,0,0,20),
	createObject(2842,1411.8106689453,1525.4736328125,1541.6607666016,0,0,269.75,20),
	createObject(2842,1411.8054199219,1523.6690673828,1541.6583251953,0,0,269.74731445313,20),
	createObject(2842,1411.798828125,1521.8701171875,1541.6583251953,0,0,269.74731445313,20),
	createObject(2842,1411.7905273438,1520.0672607422,1541.658203125,0,0,269.74731445313,20),
	createObject(2842,1411.7794189453,1518.2807617188,1541.658203125,0,0,269.74731445313,20),
	createObject(2842,1411.7813720703,1516.5103759766,1541.658203125,0,0,269.74731445313,20),
	createObject(2894,1412.1547851563,1514.6508789063,1542.5773925781,14.248748779297,359.22619628906,0.19046020507813,20),
	createObject(5426,1378.4548339844,1482.4505615234,1516.5831298828,0,0,0,20),
	createObject(2869,1410.5229492188,1514.8988037109,1541.6346435547,0,0,231.75001525879,20),
	createObject(2869,1414.0241699219,1514.9409179688,1541.7038574219,0,0,231.74560546875,20),
	createObject(2868,1413.5589599609,1515.0350341797,1542.5236816406,0,0,0,20),
	createObject(2868,1410.958984375,1514.8833007813,1542.5487060547,0,0,0,20)
}

local col = createColSphere(1412.0546875, 1520.607421875, 1542.6605224609,50)
local function watchChanges( )
	if getElementDimension( getLocalPlayer( ) ) > 0 and getElementDimension( getLocalPlayer( ) ) ~= getElementDimension( objects[1] ) and getElementInterior( getLocalPlayer( ) ) == getElementInterior( objects[1] ) then
		for key, value in pairs( objects ) do
			setElementDimension( value, getElementDimension( getLocalPlayer( ) ) )
		end
	elseif getElementDimension( getLocalPlayer( ) ) == 0 and getElementDimension( objects[1] ) ~= 65535 then
		for key, value in pairs( objects ) do
			setElementDimension( value, 65535 )
		end
	end
end
addEventHandler( "onClientColShapeHit", col,
	function( element )
		if element == getLocalPlayer( ) then
			addEventHandler( "onClientRender", root, watchChanges )
		end
	end
)
addEventHandler( "onClientColShapeLeave", col,
	function( element )
		if element == getLocalPlayer( ) then
			removeEventHandler( "onClientRender", root, watchChanges )
		end
	end
)
-- Put them standby for now.
for key, value in pairs( objects ) do
	setElementDimension( value, 65535 )
end
