quick simple answer is if you want to past some info to part of your code say the id x y z position of something the with a gosub you would have to set it up either with a global varable or x=xx, with a function you can do this with tellfunction(id,x,y,z) the other part would then be function tellfunction(newid,newz,newy,newz) and endfunction to return.
eg
gosub way
global xx:yy:zz:nowid
xx=x : yy=y : zz=z
nowid=id
gosub tellxyz
tellxyz:
position object id,xx,yy,zz
return
or in functions
function way
tellfunction(id,x,y,z)
end
function tellfunction(newid,newx,newy,newz)
position object newid,newx,newy,newz
endfunction
hope that helps.
Dark Physics makes any hot drink go cold.