return type from function

Blitz3D Forums/Blitz3D Beginners Area/return type from function

can you return a type from a function?
function makeabullet()
b.bullet_type = new bullet_type
return b.bullet_type ?
end function

b2.bullet_type=makeabullet()

(this doesn't work)

i can't figure out how to do it, if its possible.