I am having a problem with friction events. I have 1 'PhysicsBlock' object in my world and as soon as it rests on the ground the engine crashes out.

The code is as follows, if anyone can tell me where I'm going wrong that would be great!

Code:
function impact_event()
{
	return;	
}

action PhysicsBlock()
{

	phent_settype(me,PH_RIGID, PH_BOX);
	phent_setmass(me, 10, PH_BOX);
	phent_setfriction(me, 90);
	phent_setelasticity(me, 30, 100);
	phent_setdamping(me, 15,15);
	//phent_setgroup(me,5);
	set(me,SHADOW);
	my.emask |= ENABLE_FRICTION;
 	my.event = impact_event();	
	while(1)
	{
		wait(1);	
	}
}