Creating and exporting destroyable objects
There are several methods of setting up breakable assets that the player can destroy in CryENGINE. In this recipe, we will be going through the creation of a destroyable object.
Destroyable objects are assets that contain the original object and pre-created pieces that spawn when this original object is destroyed. It destroys into the pre-created pieces when taking more damage than the specified "health" property of the entity placed in sandbox as a destructible object.
Good candidates for destroyable objects are glass bottles, explosive barrels, computer monitors, and wooden barrels. Larger objects can also be destroyable, but it will depend mostly on what the game play calls for, such as a destroyable vehicle or wall.
All of these assets normally consist of pre-created pieces that emit when the object is destroyed.
Getting ready
You should have already created a basic object that you will in turn make destructible.
In this recipe, we will use the wooden_barrel_simple...