<prefab version="1.5.4">
	<group name="gate main (open)" pos="-6.0 0.1 2.0">
		<script pos="0.0 0.0 0.6" file="MOD/sampleCtrl1.lua" param0="open=true">
			<script pos="0.0 0.0 -0.6" file="MOD/sectionalGate.lua" param0="open=true" param1="motorSound=light/buzz4.ogg:1:2.5" param2="gateSound=metal/slide-l-loop.ogg:1.5:5" param3="speed=0.75">
				<group name="gates" pos="0.0 2.5 -0.7" rot="90 0 0" prop0="brush=MOD/sectionalGate.vox" prop1="object=gates" prop2="tags=gateDoor" prop3="limits=-40 40">
					<body pos="0.0 0.0 0.1" dynamic="true">
						<voxbox pos="-2.0 -0.0 -0.2" rot="0.0 0.0 0.0" size="40 6 3"/>
						<group pos="0.0 0.5 0.0" rot="0.0 0.0 0.0" prop0="type=hinge" prop1="rot=0 90 0">
							<joint pos="-0.7 0.1 0.0"/>
							<joint pos="0.7 0.1 0.0"/>
						</group>
					</body>
					<body pos="0.0 0.6 0.1" dynamic="true">
						<voxbox pos="-2.0 -0.0 -0.2" rot="0.0 0.0 0.0" size="40 6 3"/>
						<group pos="0.0 0.5 0.0" rot="0.0 0.0 0.0" prop0="type=hinge" prop1="rot=0 90 0">
							<joint pos="-0.7 0.1 0.0"/>
							<joint pos="0.7 0.1 0.0"/>
						</group>
					</body>
					<body pos="0.0 1.2 0.1" dynamic="true">
						<voxbox pos="-2.0 -0.0 -0.2" rot="0.0 0.0 0.0" size="40 6 3"/>
						<group pos="0.0 0.5 0.0" rot="0.0 0.0 0.0" prop0="type=hinge" prop1="rot=0 90 0">
							<joint pos="-0.7 0.1 0.0"/>
							<joint pos="0.7 0.1 0.0"/>
						</group>
					</body>
					<body tags="gateTop" pos="0.0 1.8 0.1" dynamic="true">
						<voxbox pos="-2.0 -0.0 -0.2" rot="0.0 0.0 0.0" size="40 6 3"/>
					</body>
				</group>
				<vox tags="gateCtrl" pos="0.05 2.6 2.3" rot="0.0 -180.0 0.0" file="MOD/sectionalGate.vox" object="motor"/>
				<voxscript tags="gateTrack" pos="-1.95 0.0 -1.5" file="MOD/sectionalGateVoxscript.lua">
					<parameters brush="MOD/sectionalGate.vox" offset="2"/>
				</voxscript>
				<location tags="gateJoint" pos="0.0 2.4 1.7" rot="0.0 0.0 0.0"/>
			</script>
			<group name="extrnal control" pos="-2.4 1.0 -2.0">
				<voxbox tags="close" pos="-0.1 0.0 -0.1" rot="0.0 0.0 0.0" size="2 1 1" pbr="0 0 0 0.5"/>
				<voxbox tags="stop" pos="-0.1 0.15 -0.1" rot="0.0 0.0 0.0" size="2 1 1" color="1 0.5 0" pbr="0 0 0 0.5"/>
				<voxbox tags="open" pos="-0.1 0.3 -0.1" size="2 1 1" pbr="0 0 0 0.5"/>
			</group>
			<trigger tags="enterCheck" pos="0.0 0.0 -5.6" type="box" size="5 2 6"/>
			<trigger tags="enterCheck" pos="0.0 0.0 1.4" type="box" size="4 2 7"/>
		</script>
	</group>
</prefab>

