Duplicating and renaming

Blitz3D Forums/Blitz3D Beginners Area/Duplicating and renaming

Dicon(Posted 2011) [#1]
I am loading in a room and want to duplicate and re-use the mesh, reading the new position of the mesh in an array. ( I am building a dungeon with different units. I have tried this....

room=LoadMesh("Unit 5.b3d")
CopyEntity(unit,unit2)
but "unit2" isn't recognised. Any help appreciated.
Thanks
Dicon


josk(Posted 2011) [#2]
unit2=copyentity(unit,optional parent entity)


Yue(Posted 2011) [#3]
The duplicate must be contained in a variable as it shows Josk, note that after you establish your new position. PositionEntity ...


Dicon(Posted 2011) [#4]
Thanks all, I am getting there... s.. l.. o.. w... l...y..
Dicon