You've suggested this before. It's incredibly easy code, here:
$LastLoad = new SimSet();
package lastLoad
{
function fxDTSBrick::onLoadPlant(%brick)
{
Parent::onLoadPlant(%brick);
if(isObject(%brick))
$LastLoad.add(%brick);
}
};
activatePackage(lastLoad);
function ServerCmdClearLastLoad(%client)
{
if(!%client.isAdmin)
return;
while(%delete = $LastLoad.getObject(0))
%delete.delete();
$LastLoad.delete();
$LastLoad = new SimSet();
}
And stfu other coders about the object check before adding to the set, other functions may have packaged onLoadPlant to delete the brick in certain circumstances.