Well, there are a few things you should check. First, make sure the unit that can salvage has the SALVAGER KindOf, and if it can upgrade its weapon by salvaging, it must also have the WEAPON_SALVAGER KindOf.
Then, make sure the unit you're trying to destroy has this piece of code:
Behavior = CreateCrateDie ModuleTag_nn
CrateData = USASalvageCrateData
End
Most units have a similar piece of code (which calls for SalvageCrateData rather than USASalvageCrateData) so do a search and add the code to every unit that already has the original code. And also make sure that the module tag number is unique to the unit and not used anywhere else on some other module on the same unit.
Next up, open crate.ini and go to the SalvageCrateData section. You can see here that you need to be GLA to get the scrap. Copy the section and name it USASalvageCrateData. Change the line that has the crate name to USASalvageCrate, and change the KillerScience line to SCIENCE_America. Then, go down to the SalvageCrate section. Copy the entire section, and paste it just below it. Change the name to USASalvageCrate, and change the PickupScience line to SCIENCE_America.
That should work. Enjoy.
|