I found a way to make a function return more than one value.
(I dont think this function work. Just to show what I mean.)
Function getDimensions$(objNum)
x=Object Width(objNum)
y=Object Height(objNum)
z=Object Depth(objNum)
OutPut$=str$(x)+","+str$(y)+";"+str$(z)
EndFunction OutPut$
This would make a return string something like this:
100,200;150
Then I made two functions that could return the seperate parts of that string, "GetBefore" & "GetAfter".
ex:
Test$=GetDimensions(1)
DimensionX=Val(GetBefore(",",Test$))
DimensionY=Val(GetAfter(",",GetBefore(";",Test$)))
DimensionZ=Val(GetAfter(";",Test$))
I dont remember the GetBefore/After Functions, you have to figure them out yourself. But that should do the trick. I have used this method in lots of my apps/games.