a function would be
function pie(variablea,b,c)
make object sphere variablea,c
time=timer()+b
if timer()=time then delete object variablea
endfunction
pie(3,2000,50)
that would create object 3 size 50, and delete it after 2 seconds, but after pie you can put any variable. that code doesnt work bcuz the if function isnt in a loop, but whatever.
A gosub
inigame:
make object yadda yadda
position object yadda,blah,blah,blah
rotate object yadda,blah,blah,blah
return
gosub inigame
A function is more like a custom command, a gosub is a subtask. You could switch the jobs, but if ur using it alot of times, with changing variables then u want a function, otherwise subroutine. Ive never been good @ explaining stuff so sorry if i make absolutely no sense
parrot