Well, I decided to give out another piece of code,and I know most of my code is pointless. But this is a way of returning multiple variables from a function and dumping them into a temporary space in an array. Basicly, you setup a dump area with SetupTmp(id of space). That sets the 9 values of the space to 0 and it sets up the array so you can actually use these. Then you can fill them up by using this this:
tmp(id).val[1-9] = [float]value
here is the code:
type tmpdump
val1 as float
val2 as float
val3 as float
val4 as float
val5 as float
val6 as float
val7 as float
val8 as float
val9 as float
endtype
global tmp(0) as tmpdump
Function SetupTmp(id as integer)
array insert at bottom tmp(0)
tmp(id).val1 = 0
tmp(id).val2 = 0
tmp(id).val3 = 0
tmp(id).val4 = 0
tmp(id).val5 = 0
tmp(id).val6 = 0
tmp(id).val7 = 0
tmp(id).val8 = 0
tmp(id).val9 = 0
endfunction
Yeah,thats about it. Sorta boring but somewhat helpful if you want to return multiple values in a specified dump for a function.
all ben needs is his band,his guitar,and his computer