Use trigger
set trigger to player and to the door and then use
if(event_type == event_trigger)
Is a good tutorial in help in 3dgs about triggering and door switches.


Never say never.