Thanks Freddix. You solve one of the problem. I had to do this to get it to work
ProcedureCDLL FreeObject()
object.l=1
While DBGetObjectExist(object.l)
object.l=object.l + 1
Wend
ProcedureReturn object
EndProcedure
;*****************************************************************************************************
ProcedureCDLL LoadStaticObject( Filename.L,ObjectName)
ObjectName=FreeObject()
file.s=PeekS(Filename.L)
DBloadObject(file.s,ObjectName)
SC_setupObject( ObjectName, 0, 0 )
EndProcedure
;*****************************************************************************************************
My command is
LoadStaticObject "filepath$","ObjectName$"
The second parameter is the name I give the object. FreeObject() gets an unused object number. In LoadStaticObject() has a parameter ObjectName in which is equal to whatever FreeObject() comes up with.
What I want to do is make and object give it a name so it can be used by other commands
LoadStaticObject "create/create.x","create2"
position object create2,10,0,5
In above create2 is equal to 0 in the postion object command.Is there a way to get the numeric value from create2 so I can pass it from cammand to command?
AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB