You need to give your persistent object an ArmorSet that includes an Armor that has Armor = DEFAULT 0% set so it will take no damage from most weapons and also has Armor = HACK 100% (I'm using HACK because it is unused in Generals and ZH) set so that it will take damage from your tank's death weapon. Of course, you'll need to set Armor = HACK 0% on every other Armor in Armor.ini so that the weapon won't damage everything on the map.
As for having objects fire weapons when they die, look at the Bonb Truck code for an example.
|