A recurring problem I have is with Synths (or sometimes other enemies) killing friendly robots.
Just so I could keep enjoying the silliness of the Convalescent Home Front Desk Attendant, I put considerable effort into trying to keep him alive.
I built a suit of power armor specifically to resist energy damage, took a High Speed Shredding Minigun, gave the same weapon to Macready, positioned him to catch them in a crossfire.
IT DID NOT WORK.
After 5 more failed attempts, I gave up.
No matter how hard I try, I can't defeat the Synths in time to stop them killing the CHFDA.
I've made the decision to avoid this place until I have a solution, one way or another.
And it has caused more significant problems elsewhere.
Greygarden has already lost two Mr Handy units to Synth attacks.
And they just keep coming, they are scripted to attack on a regular basis.
If this keeps up, they'll have removed most of my workforce.
I'm hoping the named Mr Handys are immune to death......
Then there was Peepers, who is my one success story.
This is an eyebot used by the Atom Cats.
After much trial and error, I managed to bring the Gunners down before they can harm Peepers.
At least, I assumed I did, since I didn't see his broken shell on the ground.
Does anyone know a way to stop NPCs getting killed in battle?
I tried the setessential console command, but it appears the syntax has been changed for Fallout 4, since the console keeps giving me an error message.
I'm adding a Repair/Reboot "dead" mechs function to my list of desired mods now.