//Generated by BehavEd

rem ( "Hall Door 1 Rotation" );

if ( $get( FLOAT, "halldoor1")$, $=$, $1$ )
{
	sound ( /*@CHANNELS*/ CHAN_LOCAL, "sound/atlantica/door.mp3" );

	affect ( "rotahall1", /*@AFFECT_TYPE*/ FLUSH )
	{

		task ( "drota1" )
		{
			rotate ( < 0.000 180.000 0.000 >, 2500.000 );
		}

		do ( "drota1" );
	}

	wait ( 2500.000 );
	set ( "halldoor1", "2" );
}


else (  )
{
	sound ( /*@CHANNELS*/ CHAN_LOCAL, "sound/atlantica/door.mp3" );

	affect ( "rotahall1", /*@AFFECT_TYPE*/ FLUSH )
	{

		task ( "drota2" )
		{
			rotate ( < 0.000 0.000 0.000 >, 2500.000 );
		}

		do ( "drota2" );
	}

	wait ( 2500.000 );
	set ( "halldoor1", "1" );
}

