The guy had one gun - his own that he had purchased awhile ago. The homeowner made him keep it in the family safe - and gave the guy a key so he could get to his gun.
So did the shooter have the gun safe where he lives or at his friend’s house?