function blackout()
{
	if(you != player){end;}
	ent_remove(my);
	blackpan.visible = on;
	camarc = camera.arc;
	while(blackpan.alpha < 100)
	{
		camera.arc += 5 * time;
		blackpan.alpha += 5 * time;
		if(player.tilt < 90){player.tilt += 1 * time;}
		wait(1);
	}
	camera.arc = camarc;
	while(blackpan.alpha > 0)
	{
		blackpan.alpha -= 5 * time;
		wait(1);
	}
	blackpan.alpha = 0;
	blackpan.visible = off;
}

action blackout_fall
{
	my.invisible = on;
	my.push = -10;
	my.enable_sonar = on;
	my.event = blackout;
}
// blackout effect
//by Rhuarc
// you need to define a plain black panel called 'blackpan' that fills the player screen

