Ceiling Turret (5e Creature)
From D&D Wiki
Small construct, lawful neutral
Skills Perception +2
Machine Gun. Ranged Weapon Attack: +6 to hit, range 120 ft., one target. Hit: 21 (5d6 + 4) piercing damage.
A ceiling turret is a robotic turret with a 360-degree arc of fire which is installed on the ceiling of a room or corridor. It is artificially intelligent (if incredibly stupid), with a sophisticated friend or foe detection system that allows it to recognize and automatically engage intruders who are not granted access to a particular area.