use c_trace with SCAN_TEXTURE flag to get the texture hit by the ray.


Free world editor for 3D Gamestudio: MapBuilder Editor