Is it safe regarding the cloned object?
I've already made a test with the following code snippet and it seems that works OK, since I am not sure that the test result is circumstantial
SetErrorMode(2)
SetWindowTitle( "clone" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 )
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetSyncRate( 30, 0 )
SetScissor( 0,0,0,0 )
UseNewDefaultFonts( 1 )
obj as integer
obj_clone as integer
obj = LoadObjectWithChildren("obj.dae")
obj_clone = CloneObject(obj)
SetObjectColor(obj, 255, 0, 0, 255)
SetObjectColor(obj_clone, 0, 255, 0, 255)
SetObjectPosition(obj, -10.0, 0.0, 0.0)
SetObjectPosition(obj_clone, 10.0, 0.0, 0.0)
SetCameraRotation(1, -10.0, 0.0, 0.0)
SetCameraPosition(1, 0.0, -5.0, -30.0)
a as float
do
Print("obj = " + str(obj))
Print("obj clone = " + str(obj_clone))
Print("Press [D] to delete the original object")
if GetRawKeyReleased(68)
DeleteObject(obj)
obj = 0
endif
if obj > 0 then SetObjectRotation(obj, a, 0.0, 0.0)
SetObjectRotation(obj_clone, -a, 0.0, 0.0)
a = a + 2.0
if a > 360.0 then a = 1
Sync()
loop