Copyentity with types ?

Blitz3D Forums/Blitz3D Beginners Area/Copyentity with types ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

A type instance isn't an entity so using copyentity doesn't work.

If you want a completely new/separate type instance to be created when copying, you're going to have to do it all manually, like:

player(3) = New something
player(3)\mesh = myarray(4)\mesh
player(3)\locx = myarray(4)\locx
player(3)\locy = myarray(4)\locy


All a bit messy but if you pack it away into your own copy_type() function, you only have to look at it once. ;)

Or, if you simply want to make player(3) reference the same type instance as myarray(4), you can of course just do:

player(3) = myarray(4)