local objects = 
{
	-- LauraV
	createObject(18025,269.345703125,-21.783203125,989.67340087891,0,0,0,31),
	createObject(2876,263.92852783203,-19.091739654541,988.970703125,0,0,0,31),
	createObject(2876,260.974609375,-19.08270072937,988.970703125,0,0,0,31),
	createObject(14902,263.90380859375,-29.442125320435,986.78021240234,0,0,0,31),
	createObject(2924,278.4345703125,-14.563690185547,988.99200439453,0,0,0,31),
	createObject(1533,270.486328125,-29.169921875,987.81072998047,0,0,180.7470703125,31),
	createObject(1432,267.82757568359,-16.17504119873,987.79840087891,0,0,0,31),
	createObject(1432,270.62826538086,-17.885770797729,987.79840087891,0,0,0,31),
	createObject(1432,272.59115600586,-15.898942947388,987.79840087891,0,0,315,31),
	createObject(2435,276.0361328125,-15.11328125,987.79840087891,0,0,270,31),
	createObject(2435,276.03918457031,-16.043724060059,987.79840087891,0,0,269.9970703125,31),
	createObject(2435,276.03775024414,-16.97679901123,987.79840087891,0,0,269.99450683594,31),
	createObject(2435,277.1708984375,-18.0712890625,987.79840087891,0,0,359.98901367188,31),
	createObject(2434,276.03793334961,-17.907306671143,987.79840087891,0,0,270,31),
	createObject(2435,278.10076904297,-18.070281982422,987.79840087891,0,0,359.98901367188,31),
	createObject(2915,263.833984375,-27.892578125,987.91955566406,0,0,0,31),
	createObject(2533,279.00042724609,-15.149534225464,987.79840087891,0,0,270.75,31),
	createObject(2627,259.99310302734,-20.372470855713,987.79840087891,0,0,270,31),
	createObject(2627,259.9375,-21.7109375,987.79840087891,0,0,270,31),
	createObject(2628,267.26470947266,-28.160963058472,987.79840087891,0,0,180,31),
	createObject(2630,260.48205566406,-26.039144515991,987.79840087891,0,0,89.25,31),
	createObject(2630,260.44757080078,-27.189594268799,987.79840087891,0,0,89.247436523438,31),
	createObject(2629,278.392578125,-21.794921875,987.79840087891,0,0,269.24743652344,31),
	createObject(2700,266.24014282227,-14.879326820374,989.96343994141,0,0,326.97485351563,31),
	createObject(1716,275.40176391602,-15.127382278442,987.80578613281,0,0,0,31),
	createObject(1716,275.32614135742,-16.223039627075,987.80578613281,0,0,0,31),
	createObject(1716,275.474609375,-17.478515625,987.80578613281,0,0,0,31),
	createObject(1716,276.92587280273,-18.486190795898,987.80578613281,0,0,0,31),
	createObject(1716,278.076171875,-18.5576171875,987.80578613281,0,0,0,31),
	createObject(1542,276.52362060547,-15.729520797729,988.84979248047,0,0,269.25,31),
	createObject(14787,268.0986328125,-17.296875,987.26104736328,0,0,0,31),
	createObject(2916,264.71875,-27.91015625,987.91491699219,0,0,340.49926757813,31),
	createObject(2916,265.23849487305,-27.779161453247,987.91491699219,0,0,293.99926757813,31),
	createObject(2913,278.921875,-22.27734375,988.77429199219,0,89.241943359375,89.994506835938,31),
	createObject(1985,278.53314208984,-27.089540481567,990.84088134766,0,0,0,31),
	createObject(1985,278.48919677734,-24.800369262695,990.84088134766,0,0,0,31),
	createObject(3857,269.6064453125,-19.154296875,986.35845947266,0,0,45,31),
	createObject(1809,279.01571655273,-15.156282424927,990.14703369141,0,0,268.19152832031,31),
	createObject(1533,258.56539916992,-25.368104934692,987.81072998047,0,0,89.840759277344,31),
	createObject(1712,272.27203369141,-28.455263137817,987.78863525391,0,0,179.95654296875,31)
}

local col = createColSphere(269.345703125,-21.783203125,989.67,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
