Similar to this....

starter load_shaders()
{
d3d_automaterial=1;
effect_load (brushed_metal02, "envmap.fx");
wait(5);

bmap_to_cubemap(bmap_to_mipmap(brushed_metal02.skin1));

}