Military units and structures: Difference between revisions
Jump to navigation
Jump to search
Created article |
m →Military units: Changed icons of the combat bots from their capsules to the robots themselves |
||
| (41 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
{{Languages}} | {{Languages}} | ||
Some units and | Some units and structures are marked as '''Military units''' or '''Military structures''' and are high priority targets for enemy forces. They will be attacked on sight by: | ||
* [[Enemies#Biters|Biters]], [[Enemies#Spitters|spitters]], and [[Enemies#Worms|worms]]. | * [[Enemies#Biters|Biters]], [[Enemies#Spitters|spitters]], and [[Enemies#Worms|worms]]. | ||
* [[Gun_turret|Turrets]], [[combat robots]], and [[personal laser defense]]. | * [[Gun_turret|Turrets]], [[Combat_robot_capsules|combat robots]], and [[personal laser defense]]. | ||
* The [[player]], when holding down "shoot enemy" | * The [[player]], when holding down "shoot enemy" {{Keybinding|space}}. | ||
There are a few exceptions: | |||
* [[ | * [[Artillery turret]]s and [[artillery wagon]]s will not attack units automatically, they only attack structures automatically. | ||
* [[ | * Enemies are not "distracted" by [[construction robot]]s and will not enter combat on sight. However, enemies already in combat will target these robots like any other military unit and structure. | ||
* [[Land mine]]s are only targeted by enemies during the first 2 seconds after placement, as they arm and bury in the ground. Also, enemies do not enter combat when triggering and taking damage from a land mine. | |||
__TOC__ | |||
== Modding == | == Modding == | ||
Military units and | Military units and structures are identified by [https://lua-api.factorio.com/latest/prototypes/EntityWithOwnerPrototype.html#is_military_target a flag] on [https://lua-api.factorio.com/latest/prototypes/EntityWithOwnerPrototype.html EntityWithOwnerPrototype]. This can be changed by [[modding]], except for units and unit spawners. The ''default'' military prototypes are listed in the table below. | ||
== Military units == | == Military units == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! | ! Icon !! Name !! Default<br>force !! Prototype | ||
|- | |||
| [[File:Player.png|center|32px]] | |||
| [[Player]] | |||
| player | |||
| [https://lua-api.factorio.com/latest/prototypes/CharacterPrototype.html character] | |||
|- | |||
| [[File:Car.png|center|32px]] | |||
| [[Car]] | |||
| player | |||
| [https://lua-api.factorio.com/latest/prototypes/CarPrototype.html car] | |||
|- | |- | ||
| [[File: | | [[File:Tank.png|center|32px]] | ||
| | | [[Tank]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/CarPrototype.html car] | |||
|- | |- | ||
| [[File: | | [[File:Spidertron.png|center|32px]] | ||
| | | [[Spidertron]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/SpiderVehiclePrototype.html spider-vehicle] | |||
|- | |- | ||
| [[File: | | [[File:Defender.png|center|32px]] | ||
| | | [[Defender capsule|Defender]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/CombatRobotPrototype.html combat-robot] | |||
|- | |- | ||
| [[File: | | [[File:Distractor.png|center|32px]] | ||
| | | [[Distractor capsule|Distractor]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/CombatRobotPrototype.html combat-robot] | |||
|- | |- | ||
| [[File: | | [[File:Destroyer.png|center|32px]] | ||
| | | [[Destroyer capsule|Destroyer]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/CombatRobotPrototype.html combat-robot] | |||
|- | |- | ||
| [[File: | | [[File:Construction_robot.png|center|32px]] | ||
| | | [[Construction robot]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/ConstructionRobotPrototype.html construction-robot] | |||
|- | |- | ||
| [[File:Land_mine.png|center]] | | [[File:Land_mine.png|center|32px]] | ||
| Land mine | | [[Land mine]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/LandMinePrototype.html land-mine] | |||
|- | |- | ||
| [[File:small_biter.png|center|64px]] | | [[File:small_biter.png|center|64px]] | ||
| Small biter | | [[Enemies#Biters|Small biter]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |- | ||
| [[File:small_spitter.png|center|72px]] | | [[File:small_spitter.png|center|72px]] | ||
| Small spitter | | [[Enemies#Spitters|Small spitter]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |- | ||
| [[File:medium_biter.png|center|64px]] | | [[File:medium_biter.png|center|64px]] | ||
| Medium biter | | [[Enemies#Biters|Medium biter]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |- | ||
| [[File:medium_spitter.png|center|72px]] | | [[File:medium_spitter.png|center|72px]] | ||
| Medium spitter | | [[Enemies#Spitters|Medium spitter]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |- | ||
| [[File:big_biter.png|center|64px]] | | [[File:big_biter.png|center|64px]] | ||
| Big | | [[Enemies#Biters|Big biter]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |- | ||
| [[File:big_spitter.png|center|72px]] | | [[File:big_spitter.png|center|72px]] | ||
| Big spitter | | [[Enemies#Spitters|Big spitter]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |- | ||
| [[File:behemoth_biter.png|64px]] | | [[File:behemoth_biter.png|center|64px]] | ||
| Behemoth biter | | [[Enemies#Biters|Behemoth biter]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |- | ||
| [[File:behemoth_spitter.png|center|72px]] | | [[File:behemoth_spitter.png|center|72px]] | ||
| Behemoth spitter | | [[Enemies#Spitters|Behemoth spitter]] | ||
| [[ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |||
| [[File:demolisher_small.png|center|72px]] | |||
| [[Enemies#|Small demolisher]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SegmentedUnitPrototype.html segmented-unit] | |||
|- | |||
| [[File:demolisher_medium.png|center|72px]] | |||
| [[Enemies#|Medium demolisher]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SegmentedUnitPrototype.html segmented-unit] | |||
|- | |||
| [[File:demolisher_big.png|center|72px]] | |||
| [[Enemies#|Big demolisher]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SegmentedUnitPrototype.html segmented-unit] | |||
|- | |||
| [[File:wriggler_small.png|center|72px]] | |||
| [[Enemies#Wrigglers|Small wriggler]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |||
| [[File:wriggler_medium.png|center|72px]] | |||
| [[Enemies#Wrigglers|Medium wriggler]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |||
| [[File:wriggler_big.png|center|72px]] | |||
| [[Enemies#Wrigglers|Big wriggler]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |||
| [[File:wriggler_small.png|center|72px]] | |||
| [[Enemies#Wrigglers|Small premature wriggler]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |||
| [[File:wriggler_medium.png|center|72px]] | |||
| [[Enemies#Wrigglers|Medium premature wriggler]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |||
| [[File:wriggler_big.png|center|72px]] | |||
| [[Enemies#Wrigglers|Big premature wriggler]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | |||
|- | |||
| [[File:strafer_small.png|center|72px]] | |||
| [[Enemies#Strafers|Small strafer]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SpiderUnitPrototype.html spider-unit] | |||
|- | |||
| [[File:strafer_medium.png|center|72px]] | |||
| [[Enemies#Strafers|Medium strafer]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SpiderUnitPrototype.html spider-unit] | |||
|- | |||
| [[File:strafer_big.png|center|72px]] | |||
| [[Enemies#Strafers|Big strafer]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SpiderUnitPrototype.html spider-unit] | |||
|- | |||
| [[File:stomper_small.png|center|72px]] | |||
| [[Enemies#Stompers|Small stomper]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SpiderUnitPrototype.html spider-unit] | |||
|- | |||
| [[File:stomper_medium.png|center|72px]] | |||
| [[Enemies#Stompers|Medium stomper]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SpiderUnitPrototype.html spider-unit] | |||
|- | |||
| [[File:stomper_big.png|center|72px]] | |||
| [[Enemies#Stompers|Big stomper]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/SpiderUnitPrototype.html spider-unit] | |||
|- | |||
| [[File:small_metallic_asteroid.png|center|32px]] | |||
| [[Asteroid|Small metallic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:medium_metallic_asteroid.png|center|32px]] | |||
| [[Asteroid|Medium metallic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:big_metallic_asteroid.png|center|32px]] | |||
| [[Asteroid|Big metallic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:huge_metallic_asteroid.png|center|32px]] | |||
| [[Asteroid|Huge metallic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:small_carbonic_asteroid.png|center|32px]] | |||
| [[Asteroid|Small carbonic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:medium_carbonic_asteroid.png|center|32px]] | |||
| [[Asteroid|Medium carbonic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:big_carbonic_asteroid.png|center|32px]] | |||
| [[Asteroid|Big carbonic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:huge_carbonic_asteroid.png|center|32px]] | |||
| [[Asteroid|Huge carbonic asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:small_oxide_asteroid.png|center|32px]] | |||
| [[Asteroid|Small oxide asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:medium_oxide_asteroid.png|center|32px]] | |||
| [[Asteroid|Medium oxide asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:big_oxide_asteroid.png|center|32px]] | |||
| [[Asteroid|Big oxide asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:huge_oxide_asteroid.png|center|32px]] | |||
| [[Asteroid|Huge oxide asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:small_promethium_asteroid.png|center|32px]] | |||
| [[Asteroid|Small promethium asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:medium_promethium_asteroid.png|center|32px]] | |||
| [[Asteroid|Medium promethium asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:big_promethium_asteroid.png|center|32px]] | |||
| [[Asteroid|Big promethium asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
| [[File:huge_promethium_asteroid.png|center|32px]] | |||
| [[Asteroid|Huge promethium asteroid]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/AsteroidPrototype.html asteroid] | |||
|- | |||
|} | |} | ||
== Military | == Military structures == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! | ! Icon !! Name !! Default<br>force !! Prototype | ||
|- | |- | ||
| [[File: | | [[File:Gun_turret.png|center|32px]] | ||
| | | [[Gun turret]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/AmmoTurretPrototype.html ammo-turret] | |||
|- | |- | ||
| [[File: | | [[File:Flamethrower_turret.png|center|32px]] | ||
| | | [[Flamethrower turret]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/FluidTurretPrototype.html fluid-turret] | |||
|- | |- | ||
| [[File: | | [[File:Laser_turret.png|center|32px]] | ||
| | | [[Laser turret]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/ElectricTurretPrototype.html electric-turret] | |||
|- | |- | ||
| [[File: | | [[File:Artillery_turret.png|center|32px]] | ||
| | | [[Artillery turret]] | ||
| [ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/ArtilleryTurretPrototype.html artillery-turret] | |||
|- | |- | ||
| [[File: | | [[File:Rocket_turret.png|center|32px]] | ||
| | | [[Rocket turret]] | ||
| [[ | | player | ||
| [https://lua-api.factorio.com/latest/prototypes/AmmoTurretPrototype.html ammo-turret] | |||
|- | |||
| [[File:Tesla_turret.png|center|32px]] | |||
| [[Tesla turret]] | |||
| player | |||
| [https://lua-api.factorio.com/latest/prototypes/ElectricTurretPrototype.html electric-turret] | |||
|- | |||
| [[File:Railgun_turret.png|center|32px]] | |||
| [[Railgun turret]] | |||
| player | |||
| [https://lua-api.factorio.com/latest/prototypes/AmmoTurretPrototype.html ammo-turret] | |||
|- | |||
| [[File:Small_worm.png|center|50px]] | |||
| [[Enemies#Worms|Small worm]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | |||
|- | |||
| [[File:Medium_worm.png|center|50px]] | |||
| [[Enemies#Worms|Medium worm]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | |||
|- | |||
| [[File:Big_worm.png|center|50px]] | |||
| [[Enemies#Worms|Big worm]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | |||
|- | |||
| [[File:Behemoth_worm.png|center|50px]] | |||
| [[Enemies#Worms|Behemoth worm]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | |||
|- | |- | ||
| [[File:Biter_nest.png|center|50px]] | | [[File:Biter_nest.png|center|50px]] | ||
| Biter spawner | | [[Enemies#Nests|Biter spawner]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html unit-spawner] | |||
|- | |- | ||
| [[File:Spitter_nest.png|center|50px]] | | [[File:Spitter_nest.png|center|50px]] | ||
| Spitter spawner | | [[Enemies#Nests|Spitter spawner]] | ||
| [ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html unit-spawner] | |||
|- | |- | ||
| | | [[File:Egg_raft.png|center|50px]] | ||
| | | [[Enemies#Nests|Egg raft]] | ||
| [[ | | enemy | ||
| [https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html unit-spawner] | |||
|- | |||
| [[File:Egg_raft_small.png|center|50px]] | |||
| [[Enemies#Nests|Small egg raft]] | |||
| enemy | |||
| [https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html unit-spawner] | |||
|- | |- | ||
| | | | ||
| SimpleEntityWithForce | | [https://lua-api.factorio.com/latest/prototypes/SimpleEntityWithForcePrototype.html SimpleEntityWithForce] | ||
| [ | | | ||
| [https://lua-api.factorio.com/latest/prototypes/SimpleEntityWithForcePrototype.html simple-entity-with-force] | |||
|} | |} | ||
== History == | |||
{{History|2.0.7| | |||
* [[Radar]]s are no longer military targets. | |||
* Removed Compilatron. | |||
}} | |||
{{History|0.18.0| | |||
* [[Construction robot|Construction]] and [[logistic robot]]s are no longer prioritized by enemies. <!-- 5bc8727 + 6f56389 --> | |||
}} | |||
{{C|Main}} | |||
Latest revision as of 17:30, 16 November 2026
Some units and structures are marked as Military units or Military structures and are high priority targets for enemy forces. They will be attacked on sight by:
- Biters, spitters, and worms.
- Turrets, combat robots, and personal laser defense.
- The player, when holding down "shoot enemy" SPACE.
There are a few exceptions:
- Artillery turrets and artillery wagons will not attack units automatically, they only attack structures automatically.
- Enemies are not "distracted" by construction robots and will not enter combat on sight. However, enemies already in combat will target these robots like any other military unit and structure.
- Land mines are only targeted by enemies during the first 2 seconds after placement, as they arm and bury in the ground. Also, enemies do not enter combat when triggering and taking damage from a land mine.
Modding
Military units and structures are identified by a flag on EntityWithOwnerPrototype. This can be changed by modding, except for units and unit spawners. The default military prototypes are listed in the table below.
Military units
Military structures
| Icon | Name | Default force |
Prototype |
|---|---|---|---|
| Gun turret | player | ammo-turret | |
| Flamethrower turret | player | fluid-turret | |
| Laser turret | player | electric-turret | |
| Artillery turret | player | artillery-turret | |
| Rocket turret | player | ammo-turret | |
| Tesla turret | player | electric-turret | |
| Railgun turret | player | ammo-turret | |
| Small worm | enemy | turret | |
| Medium worm | enemy | turret | |
| Big worm | enemy | turret | |
| Behemoth worm | enemy | turret | |
| Biter spawner | enemy | unit-spawner | |
| Spitter spawner | enemy | unit-spawner | |
| Egg raft | enemy | unit-spawner | |
| Small egg raft | enemy | unit-spawner | |
| SimpleEntityWithForce | simple-entity-with-force |
History
- 0.18.0:
- Construction and logistic robots are no longer prioritized by enemies.



























































