what i meant with 'doesnt work' means actually that its not usefull for me..
Scan_texture gives the model name and not the texture. and even if updates tex_light it wont work/be useful for me for what i need.

sorry for the complication!