--A script which changes the player's skybox object to the first object in the 
--tagged sector.
local function SkyboxFling(l,mo,s)
	for x in sectors.iterate
		if x.tag == l.tag
			for i in x.thinglist()
					i.flags = $1 & ~(MF_NOBLOCKMAP|MF_SCENERY)
					P_SetSkyboxMobj(i)
					break
			end
		end
	end
end
addHook("LinedefExecute",SkyboxFling,"CUSKYBX")

