TGC Codebase Backup



Get Your next free object # by Viroscopics

31st May 2007 9:57
Summary

A Small function that will return the next availa ble object #



Description

make 500 boxes

Example

for b = 1 to 500
a=GNF()
make object cube a,15
next b

function GNF()
obj = 1
while object exist(obj) = 1
inc obj,1
endwhile
endfunction obj

THis is code that i found and not created by myself just adapted to my work.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    function GNF()
   obj = 1
   while object exist(obj) = 1
      inc obj,1
   endwhile
endfunction obj