//Generated by BehavEd

rem ( "Deactivate Detention Area Defenses" );

if ( $get( FLOAT, "SET_PARM1")$, $>$, $3$ )
{

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

	use ( "turret1" );
	use ( "turret1_door" );
	use ( "turret1_deactivated" );
	wait ( 3000.000 );

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

}


else (  )
{
	sound ( /*@CHANNELS*/ CHAN_VOICE, "sound/interface/ammocon_empty.mp3" );
	use ( "level4deny" );
}

