//Generated by BehavEd

rem ( "Atlantica Lift 1 - Floor 1 Call Button" );

if ( $get( FLOAT, "lift1_location")$, $=$, $3$ )
{
	rem ( "Deactivate all Call Buttons" );

	affect ( "lift1_floor3trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
	}


	affect ( "lift1_floor2trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
	}


	affect ( "lift1_floor1trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
	}

	rem ( "From Floor 3 to Floor 1" );
	use ( "lift1_path2+3-1" );
	use ( "lift1_path3-1" );
	set ( "lift1_location", "1" );

	affect ( "lift1_s1", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
		move ( $tag( "lift1switch_1_3", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
	}


	affect ( "lift1_s2", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
		move ( $tag( "lift1switch_1_3", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
	}


	affect ( "lift1", /*@AFFECT_TYPE*/ FLUSH )
	{
		move ( $tag( "lift1_1_3", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
	}

	wait ( 4000.000 );

	affect ( "lift1_s1", /*@AFFECT_TYPE*/ FLUSH )
	{
		move ( $tag( "lift1switch_1_2", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
	}


	affect ( "lift1_s2", /*@AFFECT_TYPE*/ FLUSH )
	{
		move ( $tag( "lift1switch_1_2", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
	}


	affect ( "lift1", /*@AFFECT_TYPE*/ FLUSH )
	{
		move ( $tag( "lift1_1_2", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
	}

	wait ( 4000.000 );

	affect ( "lift1_s1", /*@AFFECT_TYPE*/ FLUSH )
	{
		move ( $tag( "lift1switch_1_1", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
	}


	affect ( "lift1_s2", /*@AFFECT_TYPE*/ FLUSH )
	{
		move ( $tag( "lift1switch_1_1", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		wait ( 4000.000 );
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
	}


	affect ( "lift1", /*@AFFECT_TYPE*/ FLUSH )
	{
		move ( $tag( "lift1_1_1", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
	}

	wait ( 4000.000 );
	use ( "lift1_path2+3-1" );
	use ( "lift1_path3-1" );
	rem ( "Reactivate all Call Buttons" );

	affect ( "lift1_floor3trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
	}


	affect ( "lift1_floor2trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
	}


	affect ( "lift1_floor1trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
	}

	set ( "lift1_location", "1" );
}


else (  )
{

	if ( $get( FLOAT, "lift1_location")$, $=$, $2$ )
	{
		rem ( "Deactivate all Call Buttons" );

		affect ( "lift1_floor3trigger", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
		}


		affect ( "lift1_floor2trigger", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
		}


		affect ( "lift1_floor1trigger", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
		}

		rem ( "From Floor 2 to Floor 1" );
		use ( "lift1_path2+3-1" );
		use ( "lift1_path2-1" );
		set ( "lift1_location", "1" );

		affect ( "lift1_s1", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
			move ( $tag( "lift1switch_1_3", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
			wait ( 4000.000 );
		}


		affect ( "lift1_s2", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
			move ( $tag( "lift1switch_1_3", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
			wait ( 4000.000 );
		}


		affect ( "lift1", /*@AFFECT_TYPE*/ FLUSH )
		{
			move ( $tag( "lift1_1_3", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		}

		wait ( 4000.000 );

		affect ( "lift1_s1", /*@AFFECT_TYPE*/ FLUSH )
		{
			move ( $tag( "lift1switch_1_2", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
			wait ( 4000.000 );
		}


		affect ( "lift1_s2", /*@AFFECT_TYPE*/ FLUSH )
		{
			move ( $tag( "lift1switch_1_2", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
			wait ( 4000.000 );
		}


		affect ( "lift1", /*@AFFECT_TYPE*/ FLUSH )
		{
			move ( $tag( "lift1_1_2", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		}

		wait ( 4000.000 );

		affect ( "lift1_s1", /*@AFFECT_TYPE*/ FLUSH )
		{
			move ( $tag( "lift1switch_1_1", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
			wait ( 4000.000 );
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
		}


		affect ( "lift1_s2", /*@AFFECT_TYPE*/ FLUSH )
		{
			move ( $tag( "lift1switch_1_1", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
			wait ( 4000.000 );
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
		}


		affect ( "lift1", /*@AFFECT_TYPE*/ FLUSH )
		{
			move ( $tag( "lift1_1_1", ORIGIN)$, < 0.000 0.000 0.000 >, 4000.000 );
		}

		wait ( 4000.000 );
		use ( "lift1_path2+3-1" );
		use ( "lift1_path2-1" );
		rem ( "Reactivate all Call Buttons" );

		affect ( "lift1_floor3trigger", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
		}


		affect ( "lift1_floor2trigger", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
		}


		affect ( "lift1_floor1trigger", /*@AFFECT_TYPE*/ FLUSH )
		{
			set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
		}

		set ( "lift1_location", "1" );
	}

}

