CopyEntity()

Blitz3D Forums/Blitz3D Programming/CopyEntity()

Hi, say i do this
dim dKeys[100]
key1 = createcube()

for i=0 to 30
 dkeys[i] = copyentity(key1)
next

freeentity key1


will this also delete the dkeys? as well??

nope, just means you can't use copyentity on key1 again, you would still need to delete each dkey seperately.

cool... Thanks, This helps :o)

You need to hideentity as well or else you will see key1 entity at 0,0,0.

hehe, i got that bit.. but cheers. LOL