When working with the Nimitz initalization and deinitializatino functions for 3DEN, TeTeT noticed that if you clear(new) the scenario after you have been working on a scenario with the Nimitz the parts that make up the Nimitz weren't deleted.
The WIP version of the nimitz uses "init", "AttributesChanged3DEN", and "UnregisteredFromWorld3DEN" events to build, move and delete the various parts for the ship while working with 3DEN. These parts don't get registered as entites and do not appear in the mission.sqm.
When you place the Nimitz (or any other vehicle that creates vehicles in the init) in the 3DEN editor the init eventhandler is called and the parts are created using createVehicle. We then attach the 3DEN specific eventhandlers to handle the movement and removal of the root object to reflect onto the constituent parts. This is all working as expected.
After you have worked on a scenario with the Nimitz and want to start working on a new one if you click the button for a new scenario it removes all the objects except for the parts that were created using createVehicle as part of the root object Init eventhandler call.
Expected behaviour would be that the objects that were created by other objects init functions are also deleted from the scenario when a new one is created.