CopyEntity()

Blitz3D Forums/Blitz3D Programming/CopyEntity()

Neochrome(Posted 2003) [#1]
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??


(tu) sinu(Posted 2003) [#2]
nope, just means you can't use copyentity on key1 again, you would still need to delete each dkey seperately.


Neochrome(Posted 2003) [#3]
cool... Thanks, This helps :o)


Ziltch(Posted 2003) [#4]
You need to hideentity as well or else you will see key1 entity at 0,0,0.


Neochrome(Posted 2003) [#5]
hehe, i got that bit.. but cheers. LOL