I tried using on destroyed and if the object.count = 1, but that doesn't work if two objects of that type exist and are destroyed simultaneously.
Develop games in your browser. Powerful, performant & highly capable.
What about setting a variable to the value of object.count at level start and decreasing it by 1 every time an object is destroyed? That counter hits 0, you know the last one was destroyed.