[[quoteright:261:[[Manga/GunslingerGirl http://static.tvtropes.org/pmwiki/pub/images/Sentry_guns_2816.jpg]]]]

->''"Like this heavy-caliber tripod-mounted little old number designed by me. Built by me. And you best hope - not pointed at you."''
-->-- '''TheEngineer''', ''VideoGame/TeamFortress2''

Put simply, the Sentry Gun is a fixed gun with sensors that aims and shoots by itself -- you don't need to be standing next to it for it to do its work. Think of it as an AttackDrone without the propulsion system. You'd often find sentry guns in near to distant future settings, where automated combat is commonplace. They're typically [[WeakTurretGun weak]] in many scenarios in order to emphasize the need of human intervention in area security, but they do make [[StormTheCastle base raiding]] all the more difficult for the attacking team. As such, they aren't usually capable of holding a ZergRush off by their lonesome, let alone a single entity.

With regards to behavior, one key difference from the AttackDrone is that it's usually completely autonomous. In more serious works, this implies a highly competent defense that you can just leave it on its own to do its work. On less serious works, the odds are [[FriendOrFoe its IFF won't be reliable]]; thanks to [[AIIsACrapshoot ridiculously poor artificial intelligence]], the sentry guns are likely to shoot friendlies (and each other) by accident as much as they are likely to shoot enemies.

Almost inevitably, it resembles a [[MoreDakka machine gun]], and may have BottomlessMagazines to give it some persistence. {{Energy Ball}} sentries also exist, especially in {{Shoot Em Up}}s.

They take several distinct appearances. Here are the most common forms of them:

* '''Gun(s) mounted on legs:''' A gun which is put on metallic legs, usually a tripod or tetrapod. This type of Sentry Gun is commonly semi-portable and can be unmounted more easily than the rest of the subtypes.
* '''A surface-mounted gun:''' These are the guns that look like normal guns, but are firmly mounted on place and can be found on floors, ceilings and walls. Sometimes they can also hide inside the surface they are on.
* '''Hemisphere with barrel(s):''' This type of turret looks like a metallic hemisphere (sometimes more of a sphere is visible, sometimes less), usually with a groove where the gun barrel is located. These tend shoot to more futuristic stuff like [[EnergyBall Energy Balls]], laser beams and more.
* '''Core that fires stuff:''' This is a very simple form and can look as simple as a square with a center which fires projectiles. These normally fire slow projectiles or laser beams.

Some real life pseudo-examples exist. While the military is reluctant to give trigger-pull authority to a computer, there are many forms of remote-operated gun platforms in development and in service today, controlled by a human operator at a distance.

----
!!Examples:

[[foldercontrol]]

[[folder:Anime and Manga]]
* ''GunslingerGirl''. The Agency deploys these to defend the compound (though they are never used) and terrorists holding a nuclear power plant make use of one to fend off the Agency assault.
[[/folder]]

[[folder:Film]]
* The Colonial Marines use some sentry guns to hold off a charge of alien drones in the director's cut of ''Film/{{Aliens}}''. The guns are arranged in two sets of two along a corridor. They watch in horror as the first two guns burn up all their ammo before they run out of targets...then one of the second pair...then...
--> '''Hudson''': It aint stoppin' 'em, man... [[OhCrap it aint stoppin' 'em...]] Come on baby, come on!\\
'''Hicks''': D gun's dry...C gun's down to twenty...ten... *grabs his pulse rifle in preparation for a last stand*\\
'''Ripley''': No, look. They're retreating. *C gun's remote display is showing ten rounds remaining, less than a second's worth of shooting*\\
'''Hicks''': Next time they [[PointDefenseless walk right up and knock]]...\\
'''Ripley''': Well, ''they'' don't know that.
* ''TheLastStarfighter''. The guns protecting the Starfighter base from the Kodan meteor gun attack.
* ''UnderSiege''. A [[http://en.wikipedia.org/wiki/Phalanx_CIWS Phalanx CIWS (Close In Weapon System)]] aboard the battleship U.S.S. Missouri shoots down a jet fighter.
* ''Film/YouOnlyLiveTwice''. The "crater guns" that Blofeld ordered to be used against Tiger Tanaka's ninja army. They're quite effective in holding them off until Bond and Tanaka succeed in opening the entrance to the volcano base.
* ''Film/TheEmpireStrikesBack''. Han activates a small sentry gun, which drops out from the lower hull of the Millenium Falcon, against the snowtroopers trying to stop them escaping Hoth.
* ''TheIncredibles''. Edna Mode is taking Elastigirl to her secret design chamber.
-->'''Edna:''' ''(into voice-activated door control)'' Edna Mode.\\
''(multi-barreled gun immediately drops out of the ceiling to cover a startled Elastigirl)''\\
'''Edna:''' ...and guest.
* The Australian ExploitationFilm ''TurkeyShoot'' features several close-ups of twin CCTV-controlled [=MG3=] machine guns swiveling in a menacing fashion over the inmates of the re-education camp. When the break-out finally happens [[ImperialStormtrooperMarksmanshipAcademy they don't hit a damn thing]].
* ''Film/JudgeDredd''. In the Aspen Penal Colony, Rico's cell has several automatic guns guarding him.
* ''Film/{{Congo}}''. Double-barreled sensor-guided machine pistols mounted on tripods are used against the {{Killer Gorilla}}s when they attack the expedition's camp.
[[/folder]]

[[folder:Literature]]
* ''TheWarAgainstTheChtorr''. The protagonist turns up at a military base and presents his ID. Several cameras swing towards him "and other things that weren't cameras." Needless to say he stands very still until his ID is verified.
* In ''[[Literature/NightWatch Twilight Watch]]'', Anton is attacked by a Chinese-made mounted sentry gun. Since the sentry gun has no soul or is not attacking with ill intent, Anton is unable to detect or counter the gun with magical means, almost resulting in his death.
** This novel, more than any other, shows that human technology has reached to a point where it's a serious threat to the [[DifferentlyPoweredIndividual Others]], especially if it's magically-enhanced. The book's BigBad's plan of dealing with the most powerful Other since the Middle Ages is not some complicated spell or magical artifact. A suitcase nuke will do.
* ''The Indestructible Man'', a PastDoctorAdventures novel by Simon Messingham. Jaime is held in an underwater prison; to get past the sentry guns he knocks out a visiting doctor and cuts out the identity chip implanted in his hand. Unfortunately the doctor wakes up and staggers after him, dying rather messily as a result.
[[/folder]]

[[folder:Live-Action TV]]
* ''Series/BattlestarGalacticaClassic''. The guns that protected battlestars from enemy attack.
* ''{{Cleopatra 2525}}'' had some {{BFG}}s that came out from the walls to defend the underground city if/when Baileys came in. But they hadn't been used in so long that nobody knew about them until they automatically deployed.
* ''{{Eureka}}:'' In the episode ''H.O.U.S.E. Rules'' we learn that S.A.R.A.H. has been outfitted with ion cannon sentry guns.
* One episode of ''Series/MacGyver'' had a house defended by these.
* ''StarTrekDeepSpaceNine'': In "Civil Defense", the replicator in the Command Center created a spherical weapon that fired phaser bolts at every non-Cardassian in the room.
* ''Series/BabylonFive'' has [=EarthForce=] [[ExactlyWhatItSaysOnTheTin Interceptors]]. Once you activate them, enemy fighters ''will'' be swatted out of the sky, and [[ShootTheBullet enemy fire]] ''[[ShootTheBullet will]]'' [[ShootTheBullet be shot down]] (unless you have the Minbari advanced weapons). They can still be overwhelmed by [[MoreDakka enough volume of fire to overheat them]], though.
[[/folder]]

[[folder:Other Sites]]
* ''Wiki/SCPFoundation'', [[http://www.scp-wiki.net/scp-1888 SCP-1888 ("Terraforming Tle")]]. Facility 1888 (which contains SCP-1888) is surrounded by a barbed wire electric fence with automated sentry guns every twelve meters.
[[/folder]]

[[folder:Tabletop Games]]
* ''TabletopGame/{{Shadowrun}}'' had several of these.
** ''The Neo-Anarchists' Guide to Real Life'' supplement had gun ports, which were weapons mounted in walls that hosed down with a room when activated.
** Ares Arms Sentry weapons had a modular design which allowed the addition of optional sensor packages and various weapons (e.g. machine guns and miniguns).
** ''Seattle Sourcebook'' (1990). The Renraku Arcology is protected by computer controlled sentry guns that can destroy incoming missiles.
* Early ''{{Champions}}'' products had a couple.
** The Turner Snapdown Blaster system had an autofire blaster pop out of the ceiling and attack intruders.
** ''The Blood and Dr. [=McQuark=]''. Several automatic weapon systems were used in Dr. [=McQuark=]'s base.
* ''CarWars''. Autoduel Quarterly Volume 1 #4 adventure "Maniac". The Elm Grove Mall had Anti Vehicular Security Stations that fired at any vehicles moving at high speed.
* ''Mutant Future'' has the Robo-Turret, which defended government installations before the end of civilization. It combined some kind of firearm with either a grenade launcher or a missile launcher.
* R. Talsorian Games' ''TabletopGame/{{Cyberpunk}}'' supplement ''Night City''. Automatic APEX machine guns swept the open-air lobby of the CalBank Building at night.
[[/folder]]

[[folder:Videogames]]
* Almost ''every'' shooter and shoot 'em up, first or third person. To Wit:
** ''VideoGame/TeamFortress2'' has them as the primary kill-earner of the Engineer. It starts out as a single gun, upgrades to ''double chainguns'', and then a further upgrade gives it ''rockets''. Parts of this trope are averted with the laser designator - it does burn ammo. In standard ''Team Fortress 2'' logic, [[PercussiveMaintenance hit it with your wrench]] and your metal will rearm it.
** ''{{VideoGame/Halo 3}}'' added an auto-turret as a deployable equipment item; it hasn't been seen since.
** ''VideoGame/{{Portal}}'' has cutsey ones that follow the iPod aesthetic and say adorable things as they ventilate the player.
** ''VideoGame/{{Half-Life 2}}'' has the tripod guns that can be moved or knocked over with the Gravity Gun.
** ''[[{{VideoGame/Tribes}} Tribes 2]]'' had players on defense farm them in massive numbers.
** ''VideoGame/SystemShock'' and its sequel used them, and let the player subvert them to his side by hacking.
** ''VideoGame/{{Bioshock|1}}'' has them, too. They're built on old rolling office chairs, and can also be hacked.
** ''VideoGame/PerfectDark'' had it as the secondary function of the Laptop Gun.
*** ''Perfect Dark Zero'' also has surface-mounted Laptop Gun turrets. [[WeakTurretGun They go down easily]], though.
** ''VideoGame/{{Borderlands}}'' has the Soldier's scorpio turret, that same turret as used by Crimson Lance engineers, and the massive coastal defense guns visible on some maps.
** ''VideoGame/{{FEAR}}'' has drop-down ceiling turrets. And that deployable turret that you can chuck like a hand grenade.
** In ''VideoGame/DeusEx'', they can be hacked and turned against enemies.
** '' VideoGame/{{Killzone}} 3'' 's Multiplayer Engineer class
** ''VideoGame/GoldenEye1997'' had ceiling-mounted turrets, as well as guns on tripods in one level.
** ''VideoGame/SeriousSam'' series having cannon turrets in ''1'', cannon rocket and plasma turrets in ''2'' and minigun turrets in ''3''.
** ''VideoGame/QuakeIV'' has the obligatory ceiling turrets, as well as air-dropped turrets and homing missile turrets outdoors.
** ''VideoGame/{{PN 03}}'' has several types, including standard FrickinLaserBeams, homing missiles, and WaveMotionGun-level OneHitKill {{death ray}}s.
** Even ''{{Touhou}}'' featured these at one point during the second game of the series: Submerged turrets will pop out of stage 2 and the extra stage and fire a broadside of bullets that can be tricky to dodge.
** ''VideoGame/{{Section 8}}'' allows players to purchase and deploy three types of these: minigun turrets for attacking players, missile turrets for fending off vehicles, and anti-air turrets to keep players and deployables from spawning[[note]]Game mechanics have them [[ItsRainingMen air-deployed]] via {{drop ship}}s.[[/note]] within their attack radius.
* The main ''VideoGame/{{Marathon}}'' trilogy doesn't feature these, but many {{game mod}}s do.
* RTS games usually don't count, as most stationary defenses are depicted as manned. However:
** ''VideoGame/RiseOfLegends'' has a turret drop ability for Carlini. The parachute mounted gun drones might count, as they don't move, but they don't last very long as a defensive measure.
** Protoss turrets from ''Franchise/{{Starcraft}}'' are robotic. Terran missile turrets are manned, according to the sequel at least. The automated floor and wall turrets are present in installation levels, though.
*** According to the novel ''Shadows of the Xel'Naga'', Missile Turrets are/can be automated equipment. Zerg Sunken and Spore Colonies, being [[OrganicTechnology living entities]], sort of qualify.
*** In ''VideoGame/{{StarCraft II}}'', the bunker can be upgraded to have a machine gun nest on top, with threat-recognition programming derived from Zerg instincts. There is also a pop-up flamethrower turret.
** The Turret and Rocket Turret in ''DuneII'' automatically fires at any enemy units within range. They're essential for protecting your base.
** ''VideoGame/CommandAndConquer'' games from ''[[CommandAndConquerTiberium Tiberian Sun]]'' and beyond feature sentry guns. A rule of thumb is that sentry guns do not release soldiers[[note]]some defense structures have a crew[[/note]] when the gun is sold or destroyed. To further qualify the building as a sentry gun, it must be a small, low-tier defense structure with a turret. The Soviet Union (''[[CommandAndConquerRedAlert Red Alert 2]]'' era) actually has a low-tier defense structure named the Sentry Gun [[ExactlyWhatItSaysOnTheTin (appropriately enough)]].
** ''{{Brink}}'' has TheEngineer's pocket turret, which improves in power and durability with experience levels, going from a dinky little pea shooter to a [[GatlingGood 5mm-spewing monster.]]
** The ''{{Dawn of War}}'' series both lampshades and plays this straight. Most races/factions play this straight with the Listening Post structures and buildable defense turrets. Listening posts are structures used to defend requisition points and can be upgraded to automated guns of one sort or another, while the defense turrets are building/units that shoot at anything that gets close. The Orks, as ever, hang the lampshade: while their versions of the Listening Post and defense turret are guns manned by gretchen, so is ''[[MoreDakka every other building they get!]]''
* Odd example from ''VideoGame/BeyondGoodAndEvil''. The laser turret was a one-shot kill, but it wouldn't fire on Jade unless she was spotted by a searchlight or a guard. She could sneak right by it unscathed otherwise. It basically made some sections "must-pass" stealth sequences.
* All TowerDefense games are built around this trope - you place multiple guns of different types down to prevent the enemies from reaching you.
* Bullet Bill Blasters from ''SuperMario'' series are rather well-known.
* Sentry Guns are not unheard of in MultiplayerOnlineBattleArena games. For example, Heimerdinger's turrets in ''LeagueOfLegends'' and Engineer's Steam Turret (pre-change) in ''HeroesOfNewerth'' act this way.
* Sentry Guns some of the more common enemies in the ''{{Contra}}'' series.
* ''Super VideoGame/MeatBoy'' has got rocket turrets and saw blade guns.
* ''VideoGame/ChampionsOnline'' features a sentry gun power in the Inventor set. It's a summon that calls two robots that can fight and follow the player or be switched into more powerful but stationary sentry gun forms.
* "Core that shoots stuff" type in ''VideoGame/TheElderScrollsIVOblivion'', with floating crystals that shoot blasts of magic energy at you (and only you). Oh, [[InvincibleMinorMinion and you can't do anything about them besides running and juking.]]
* The ''SDGundamGGeneration'' series has turrets defending both the player and the enemy's bases, and destroying them lets the other faction take it over, which is an automatic victory. The quality of turrets gets upgraded as you progress through the game and unlock higher levels of technology.
* ''VideoGame/{{Fallout 3}}'' has two types of sentry guns but they both have only three settings, 1)friendly to your enemies 2)hostile to everyone 3) off. The last one is often achieved with a shotgun, but most have an override computer near them. There are also the ubiquitous pressure plate-activated shotgun traps, and on a less lethal scale, baseball pitching machines.
* ''VideoGame/MassEffect3'' has Combat Engineers, who can deploy turrets in the middle of battle. Said turrets are, per second of exposure, among the deadliest enemies in the game.
* ''SplinterCell'' has these. Since this is a StealthBasedGame, you can't destroy them. Instead, each one has a control console near them. The goal is to sneak past the guns and either disable them or turn off their friend/foe recognition software.
* ''TachyonTheFringe'' has space mines that are actually armed with lasers instead of powerful explosives. They go down from one shot, though.
* Lasertowers in the ''[[VideoGame/{{X}} X-Universe]]'' series are a cross between this and a KillSat. They're stationary objects deployed from a ship's cargo bay that are armed with a single powerful laser to destroy enemy ships. Unfortunately, their IFF sometimes gets glitchy and attacks neutral ships [[WhatTheHellPlayer with predictable results]], and they're actually fairly ineffective in their intended role in ''X3: Terran Conflict'' unless you drop a whole lot of them. (They become much more useful in ''[[ExpansionPack Albion Prelude]]'' thanks to a buff in damage and shielding.) ''X3: Terran Conflict'' introduces Orbital Weapon Platforms, which are, in essence, enormous station-sized sentry guns capable of mounting capital-ship weapons.
* Literally all of the enemies in ''VideoGame/{{Receiver}}'' are either flying drones or turrets on legs. Unlike most depictions, the turrets have a surprisingly small amount of ammo. But they're so accurate and fast to react that trying to trick them into wasting their ammo is a risky proposition when the amount of bullets that kills you is smaller than the number of fingers on one hand. On the other hand, they have several vulnerable points (their connecting point to the tripod, the gun, and the sensor) that render the gun worthless with a single well-aimed shot.
[[/folder]]

[[folder:Western Animation]]
* ''KimPossible'''s way to some villain lairs is laced with like sentry guns. But for Kim Possible, a little acrobatics and friendly fire among the guns will solve the problem.
[[/folder]]

[[folder:Real Life]]
* [[http://en.wikipedia.org/wiki/Close-in_weapon_system Close In Weapon Systems]], abbreviated CIWS, of which there are several. Examples include but are not limited to:
** The United States [[http://en.wikipedia.org/wiki/Phalanx_CIWS Phalanx CIWS]], 20mm Gatling gun.
** The Netherlands [[http://en.wikipedia.org/wiki/Goalkeeper_CIWS Goalkeeper CIWS]], 30mm Gatling gun - based off of the same GAU-8 cannon from the A-10 Avenger.
** The Italian [[http://en.wikipedia.org/wiki/DARDO DARDO CIWS]], twin fast firing 40mm Bofors Cannon using High Explosive Shells.
* The [[http://www.youtube.com/watch?v=2upxZigECyk Intelligent Munition System]] is halfway between a sentry gun and a land mine.
* The [[http://en.wikipedia.org/wiki/Samsung_SGR-A1 Samsung SGR-A1]] is a south-korean sentry gun.
[[/folder]]
----