pseudocode:
Code:
plugin_init
get all func_breakable entities and save needed values such as origin, angle, min/max boxes, id
register remove_entity forward
remove_entity forward:
set task restore ent
restore ent:
create new entity
set all needed data you saved in plugin init and replace the entityid in the saved data with the new one
__________________