Excellent.
you forgot the "var i;", but the rest works great. Now I can setup a function to call whenever I need it to show.

function drawz(i,x,y,z)
{
draw_quad(bmp_array[i], vector(x,y,z),NULL,NULL,NULL,NULL,100,NULL);
}


thanks for the help. to shorten it more I was going to do something like this, but it's not working

var vec1[6]={20,30,40,50,60,70};
var vec2[6]={20,30,40,50,60,70};
var vec3[6]={20,30,40,50,60,70};

while(1){
for(i = 0; i < 4; i++)
{
if(buttonz[i]==1){drawz[i], vec1[i], vec2[i], vec3[i];}
}
wait(1);}

basically checking if the variable buttonz is set to 1 then executes the command. but it keeps saying subscript requires array or pointer type.

any ideas?
thanks again


Black holes are where God divided by zero.