local objects = 
{
	-- Marser
	createObject(14495,1981.1654052734,-2485.4750976563,14.450757026672,0,0,0,26),
	createObject(14526,1981.15234375,-2485.48046875,14.459458351135,0,0,0,26),
	createObject(2297,1986.583984375,-2485.7019042969,12.606507301331,0,0,135.69647216797,26),
	createObject(1498,1973.6086425781,-2488.86328125,12.606507301331,0,0,90.544494628906,26),
	createObject(1508,1980.125,-2489.837890625,14.032470703125,0,0,270.67565917969,26),
	createObject(1508,1975.5494384766,-2489.9047851563,14.032470703125,0,0,270.67565917969,26),
	createObject(1508,1975.548828125,-2489.904296875,14.032470703125,0,0,270.67565917969,26),
	createObject(1508,1971.5164794922,-2489.8500976563,14.032470703125,0,0,270.67565917969,26),
	createObject(2266,1981.4284667969,-2480.78515625,14.631506919861,0,0,0,26),
	createObject(2256,1975.2009277344,-2486.5827636719,14.779100418091,0,0,180.05603027344,26),
	createObject(16779,1981.7817382813,-2483.5131835938,16.2887840271,0,0,0,26),
	createObject(1729,1979.1767578125,-2480.8486328125,12.606507301331,0,0,41.68212890625,26),
	createObject(1432,1976.3714599609,-2485.5307617188,12.606507301331,0,0,340.15014648438,26),
	createObject(2236,1980.3232421875,-2481.1982421875,12.606507301331,0,0,0,26),
	createObject(2010,1988.1982421875,-2485.515625,12.616899490356,0,0,0,26),
	createObject(2010,1983.7358398438,-2485.5268554688,12.616899490356,0,0,0,26),
	createObject(1665,1980.2593994141,-2480.9287109375,13.172451972961,0,0,0,26),
	createObject(2894,1980.498046875,-2480.6479492188,13.111999511719,0,0,332.21020507813,26),
	createObject(14494,1987.2862548828,-2489.8706054688,14.809561729431,0,0,0,26),
	createObject(7017,1988.7548828125,-2448.8486328125,13.064109802246,0,0,269.67041015625,26),
	createObject(2611,1988.4666748047,-2482.1735839844,14.57364654541,0,0,269.84619140625,26),
	createObject(2047,1978.6030273438,-2483.4453125,15.675392150879,0,0,90.041625976563,26),
	createObject(2265,1987.9763183594,-2480.8051757813,14.839105606079,0,0,270.42297363281,26),
	createObject(2100,1982.6651611328,-2486.4055175781,12.606507301331,0,0,193.26123046875,26),
	createObject(2104,1980.9853515625,-2486.6647949219,12.606507301331,0,0,177.38134765625,26),
	createObject(2267,1975.3994140625,-2486.94140625,14.913611412048,0,0,0,26),
	createObject(2841,1973.8199462891,-2487.6276855469,12.606507301331,0,0,270.67565917969,26),
	createObject(2851,1975.9926757813,-2485.8608398438,13.221845626831,0,0,0,26),
	createObject(2853,1981.1594238281,-2480.7329101563,13.111999511719,0,0,278.61560058594,26),
	createObject(2855,1974.2694091797,-2485.4270019531,13.524695396423,0,0,278.61560058594,26),
	createObject(2848,1975.9906005859,-2480.7639160156,13.535534858704,0,0,0,26),
	createObject(2816,1973.9744873047,-2485.0070800781,13.524695396423,0,0,0,26),
	createObject(2863,1974.0362548828,-2482.763671875,13.524695396423,0,0,0,26),
	createObject(2864,1973.7811279297,-2482.2219238281,13.524695396423,0,0,67.489624023438,26),
	createObject(2846,1976.3076171875,-2496.7531738281,12.662603378296,0,0,0,26),
	createObject(1799,1975.8471679688,-2493.4711914063,12.663910865784,0,0,268.1904296875,26),
	createObject(1743,1972.5517578125,-2494.62109375,12.662603378296,0,0,88.79150390625,26),
	createObject(1744,1970.9349365234,-2494.6733398438,14.439870834351,0,0,91.059509277344,26),
	createObject(2257,1974.5544433594,-2498.2165527344,15.379663467407,0,0,178.60949707031,26),
	createObject(2001,1976.7916259766,-2490.5656738281,12.669929504395,0,0,0,26),
	createObject(2255,1976.6434326172,-2497.8293457031,14.433201789856,0,0,180.58227539063,26),
	createObject(2239,1971.7803955078,-2490.9580078125,12.662603378296,0,0,0,26),
	createObject(1535,1979.1389160156,-2489.751953125,12.606507301331,0,0,0,26),
	createObject(1764,1983.1129150391,-2481.0803222656,12.606507301331,0,0,9.9249267578125,26),
	createObject(1757,1985.9367675781,-2480.7238769531,12.606507301331,0,0,337.66516113281,26),
	createObject(2010,1988.0671386719,-2480.7446289063,12.616899490356,0,0,0,26),
	createObject(2614,1988.4364013672,-2484.0280761719,14.856135368347,0,0,270.91064453125,26),
	createObject(14865,1975.9820556641,-2494.2478027344,14.662601470947,0,0,268.69067382813,26),
	createObject(14867,1972.5845947266,-2497.2211914063,14.199634552002,0,0,267.70568847656,26),
	createObject(2164,1973.2332763672,-2490.3364257813,12.662601470947,0,0,0,26),
	createObject(2239,1978.8908691406,-2492.8732910156,12.662601470947,0,0,320.30029296875,26),
	createObject(2236,1978.1524658203,-2495.2255859375,12.656506538391,0,0,268.44067382813,26),
	createObject(2813,1978.7430419922,-2495.3483886719,13.161998748779,0,0,0,26),
	createObject(2818,1974.9926757813,-2491.34375,12.662601470947,0,0,358.76501464844,26)
}

local col = createColSphere(1982.5302734375, -2483.3603515625, 13.606507301331, 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
