I'm having a hard time trying to understand what your question is. Could you please rephrase that in detail?
Judging from your "all possible collision lines on the room from every point" comment; if you want to get the distance from each instance, you need a simple
with construction.
Code:
with (object) {
ds_list_add(other.my_list, id, point_distance(other.x, other.y, x, y));
}
The above code will populate a list with instance ids at even indexes (n; 0, 2, 4, ...) and their respective distances from the caller of this code at odd indexes (n+1; 1, 3, 5, ...).