There was one of those two headed cows walking around sancutary. When I shot it, my entire settlement went hostile and tried to kill me. Sadly, I dont have any saves before this. Anyone know how to get them friendly again or am I just screwed and cant go back to sanctuary?
I had something similar happen in Tenpines Bluff - there was a raider attack, and one of the settlers ran into the path of my VATS shot and turned hostile. Unfortunately, Codsworth was with me and so even putting away my gun didn't stop him from continuing to attack the settler, so I couldn't get them to un-hostile-ify. I tried running far away from the settlement and ordering Codsworth to wait, then returning, but by then the settler was too angry to calm down.
To solve the problem, I ran away again, dismissed Codsworth (instructing him to reside in Sanctuary), then fast-traveled to Sanctuary myself. I slept for 24 hours and fast-traveled back to Tenpines Bluff, and the settler was no longer hostile.
If Sanctuary is your only settlement so far, then just head back over to Vault 111 and sleep in the Overseer's bed, and the settlers in Sanctuary should calm down. Or find a bed in Concord, that should work too.
If they attack maybe you should try putting your weapon away. They may forgive you and stop attacking.
Wait 5 days worked for me I slept in someone's bed I waited/slept for 5 days then boom nobody attacked