Hello,

if I'm not mistaken you have to use c_trace.
With something like the following you should be able to get the texture name at specific screen coordinates:

Code:
// screen_pos.x/.y should contain the screen coordinates
// length_of_trace.. well, it is what is says

var vec_from[3];
var vec_to[3];

vec_set(vec_from, vector(screen_pos.x, screen_pos.y, 0));
vec_set(vec_to, vec_from);

vec_for_screen(vec_from, camera);
vec_to.Z = length_of_trace;
vec_for_screen(vec_to, camera);

c_trace(vec_from, vec_to, IGNORE_MODELS|IGNORE_SPRITES|SCAN_TEXTURE);