this is my code:
make matrix 1,100,100,10,10
make object box 1,5,5,5
color object 1,rgb(200,0,0)
position object 1,10,0,30
make object box 2,5,5,5
do
if spacekey() then move object 1,0.1
function dist_obj(o,o2)=dist#
text 300,300,str$(dist#)
control camera using arrowkeys 0,0.4,0.4
loop
function dist_obj(o,o2)
ox#=object position x(o2)
oz#=object position z(o2)
oy#=object position y(o2)
dx#=object position x(o)-ox#
dz#=object position z(o)-oz#
dy#=object position y(o)-oy#
dist#=sqrt((dx#*dx#)+(dz#*dz#)+(dy#*dy#))
endfunction dist#
how do i call the function for example:object 1 & object 2????