There really is nothing in the event yet except for the beep() that would indicte that the program gets there. But it doesn't so the event is never executed....

Thanks for your help
Gerrit


function door_event() // event is triggered when
{
beep();
energy-=10;
switch (event_type)
{
case EVENT_BLOCK:
// ent_playsound(my,whamm,50);
// vec_to_angle(my.pan,bounce); // change direction
return;
case EVENT_ENTITY:
// energy-= 10;
// ent_playsound(my,boingg,50); // play a different sound
// vec_to_angle(my.pan,my_location); // change direction
return;
case EVENT_TRIGGER:
return;
}
}