An electronically-operated gun safe or other lockable container is communicatively connected to an alarm system or one or more alarm system elements. When the alarm or the alarm system elements is/are triggered, a signal is received by the gun safe, which then unlocks the door to the gun safe to allow access to the contents of the gun safe, or takes other action to facilitate easier access to the contents of the gun safe.