Is your door a hing (two puten together physic objects) or only a model?
If it`s only a model, then use c_trace. Thats easier and works better (at least for me...)
example:
skill1 enable_open;
VECTOR target_pos;
vec_set (target_pos.x, vector(100, 0, 0));
vec_rotate (target_pos.x, my.pan);
vec_add (target_pos.x, my.x);
c_trace (my.x, target_pos.x, IGNORE_ME|IGNORE_PASSABLE);
if (you)
{
if(you.enable_open == 1)
{
//your open door code
}
}
But if it is, a physic object (hing), then please show at least a part of the script