Your code should look like this:
Code:
function mouse_event() 
{
	if (event_type == EVENT_CLICK) 
	{
		beep();
		ent_remove(me);
		return;
	}
}

action sound_on_click()
{
	my.emask |= ENABLE_CLICK;
	my.event = mouse_event;
}



Hope that helps. laugh


Eats commas for breakfast.

Play Barony: Cursed Edition!