Military units and structures: Difference between revisions
Jump to navigation
Jump to search
1.1.51: Prototype/EntityWithOwner added |
HeliGungir (talk | contribs) m →History |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
* [[Enemies#Biters|Biters]], [[Enemies#Spitters|spitters]], and [[Enemies#Worms|worms]]. | * [[Enemies#Biters|Biters]], [[Enemies#Spitters|spitters]], and [[Enemies#Worms|worms]]. | ||
* [[Gun_turret|Turrets]], [[Combat_robot_capsules|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: | There are a few exceptions: | ||
* [[Artillery turret]]s and [[Artillery wagon]]s will not attack units automatically, they only attack structures automatically. | * [[Artillery turret]]s and [[Artillery wagon]]s will not attack units automatically, they only attack structures automatically. | ||
* | * Enemies are not "distracted" by [[Construction robot|Construction]] and [[Logistic robot|Logistic Robots]], so enemies will not enter combat on sight. However, enemies already in combat will prioritize these robots like any other military unit. | ||
* [[Land mine|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. | |||
Line 14: | Line 15: | ||
== Modding == | == Modding == | ||
Military units and structures are identified by [ | 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 == | ||
Line 24: | Line 25: | ||
| [[Player]] | | [[Player]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/CharacterPrototype.html character] | ||
|- | |- | ||
| [[File:Defender_capsule.png|center|32px]] | | [[File:Defender_capsule.png|center|32px]] | ||
| [[Defender capsule]] | | [[Defender capsule]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/CombatRobotPrototype.html combat-robot] | ||
|- | |- | ||
| [[File:Distractor_capsule.png|center|32px]] | | [[File:Distractor_capsule.png|center|32px]] | ||
| [[Distractor capsule]] | | [[Distractor capsule]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/CombatRobotPrototype.html combat-robot] | ||
|- | |- | ||
| [[File:Destroyer_capsule.png|center|32px]] | | [[File:Destroyer_capsule.png|center|32px]] | ||
| [[Destroyer capsule]] | | [[Destroyer capsule]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/CombatRobotPrototype.html combat-robot] | ||
|- | |- | ||
| [[File:Construction_robot.png|center|32px]] | | [[File:Construction_robot.png|center|32px]] | ||
| [[Construction robot]] | | [[Construction robot]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/ConstructionRobotPrototype.html construction-robot] | ||
|- | |- | ||
| [[File:Logistic_robot.png|center|32px]] | | [[File:Logistic_robot.png|center|32px]] | ||
| [[Logistic robot]] | | [[Logistic robot]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/LogisticRobotPrototype.html logistic-robot] | ||
|- | |- | ||
| [[File:Land_mine.png|center|32px]] | | [[File:Land_mine.png|center|32px]] | ||
| [[Land mine]] | | [[Land mine]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/LandMinePrototype.html land-mine] | ||
|- | |- | ||
| [[File:small_biter.png|center|64px]] | | [[File:small_biter.png|center|64px]] | ||
| [[Enemies#Biters|Small biter]] | | [[Enemies#Biters|Small biter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
| [[File:small_spitter.png|center|72px]] | | [[File:small_spitter.png|center|72px]] | ||
| [[Enemies#Spitters|Small spitter]] | | [[Enemies#Spitters|Small spitter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
| [[File:medium_biter.png|center|64px]] | | [[File:medium_biter.png|center|64px]] | ||
| [[Enemies#Biters|Medium biter]] | | [[Enemies#Biters|Medium biter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
| [[File:medium_spitter.png|center|72px]] | | [[File:medium_spitter.png|center|72px]] | ||
| [[Enemies#Spitters|Medium spitter]] | | [[Enemies#Spitters|Medium spitter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
| [[File:big_biter.png|center|64px]] | | [[File:big_biter.png|center|64px]] | ||
| [[Enemies#Biters|Big biter]] | | [[Enemies#Biters|Big biter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
| [[File:big_spitter.png|center|72px]] | | [[File:big_spitter.png|center|72px]] | ||
| [[Enemies#Spitters|Big spitter]] | | [[Enemies#Spitters|Big spitter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
| [[File:behemoth_biter.png|64px]] | | [[File:behemoth_biter.png|64px]] | ||
| [[Enemies#Biters|Behemoth biter]] | | [[Enemies#Biters|Behemoth biter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
| [[File:behemoth_spitter.png|center|72px]] | | [[File:behemoth_spitter.png|center|72px]] | ||
| [[Enemies#Spitters|Behemoth spitter]] | | [[Enemies#Spitters|Behemoth spitter]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/UnitPrototype.html unit] | ||
|- | |- | ||
|} | |} | ||
Line 110: | Line 107: | ||
| [[Gun turret]] | | [[Gun turret]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/AmmoTurretPrototype.html ammo-turret] | ||
|- | |- | ||
| [[File:Flamethrower_turret.png|center|32px]] | | [[File:Flamethrower_turret.png|center|32px]] | ||
| [[Flamethrower turret]] | | [[Flamethrower turret]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/FluidTurretPrototype.html fluid-turret] | ||
|- | |- | ||
| [[File:Laser_turret.png|center|32px]] | | [[File:Laser_turret.png|center|32px]] | ||
| [[Laser turret]] | | [[Laser turret]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/ElectricTurretPrototype.html electric-turret] | ||
|- | |- | ||
| [[File:Artillery_turret.png|center|32px]] | | [[File:Artillery_turret.png|center|32px]] | ||
| [[Artillery turret]] | | [[Artillery turret]] | ||
| player | | player | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/ArtilleryTurretPrototype.html artillery-turret] | ||
|- | |- | ||
| [[File:Small_worm.png|center|50px]] | | [[File:Small_worm.png|center|50px]] | ||
| [[Enemies#Worms|Small worm]] | | [[Enemies#Worms|Small worm]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | ||
|- | |- | ||
| [[File:Medium_worm.png|center|50px]] | | [[File:Medium_worm.png|center|50px]] | ||
| [[Enemies#Worms|Medium worm]] | | [[Enemies#Worms|Medium worm]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | ||
|- | |- | ||
| [[File:Big_worm.png|center|50px]] | | [[File:Big_worm.png|center|50px]] | ||
| [[Enemies#Worms|Big worm]] | | [[Enemies#Worms|Big worm]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | ||
|- | |- | ||
| [[File:Behemoth_worm.png|center|50px]] | | [[File:Behemoth_worm.png|center|50px]] | ||
| [[Enemies#Worms|Behemoth worm]] | | [[Enemies#Worms|Behemoth worm]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html turret] | ||
|- | |- | ||
| [[File:Biter_nest.png|center|50px]] | | [[File:Biter_nest.png|center|50px]] | ||
| [[Enemies#Nests|Biter spawner]] | | [[Enemies#Nests|Biter spawner]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html unit-spawner] | ||
|- | |- | ||
| [[File:Spitter_nest.png|center|50px]] | | [[File:Spitter_nest.png|center|50px]] | ||
| [[Enemies#Nests|Spitter spawner]] | | [[Enemies#Nests|Spitter spawner]] | ||
| enemy | | enemy | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html unit-spawner] | ||
|- | |- | ||
| | | | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/PlayerPortPrototype.html Player port] | ||
| | | | ||
| [ | | [https://lua-api.factorio.com/latest/prototypes/PlayerPortPrototype.html player-port] | ||
|- | |- | ||
| | | | ||
| [ | | [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|Radars]] are no longer military units | |||
* Compilatron removed | |||
}} | |||
{{History|0.18.0| | |||
* [[Construction robot|Construction]] and [[Logistic robot|Logistic Robots]] can no longer distract enemies | |||
}} | |||
{{C|Main}} |
Latest revision as of 00:36, 29 August 2025
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 and Logistic Robots, so enemies will not enter combat on sight. However, enemies already in combat will prioritize these robots like any other military unit.
- 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
Icon | Name | Default force |
Prototype |
---|---|---|---|
![]() |
Player | player | character |
![]() |
Defender capsule | player | combat-robot |
![]() |
Distractor capsule | player | combat-robot |
![]() |
Destroyer capsule | player | combat-robot |
![]() |
Construction robot | player | construction-robot |
![]() |
Logistic robot | player | logistic-robot |
![]() |
Land mine | player | land-mine |
![]() |
Small biter | enemy | unit |
![]() |
Small spitter | enemy | unit |
![]() |
Medium biter | enemy | unit |
![]() |
Medium spitter | enemy | unit |
![]() |
Big biter | enemy | unit |
![]() |
Big spitter | enemy | unit |
![]() |
Behemoth biter | enemy | unit |
![]() |
Behemoth spitter | enemy | unit |
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 |
![]() |
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 |
Player port | player-port | ||
SimpleEntityWithForce | simple-entity-with-force |
History
- 0.18.0:
- Construction and Logistic Robots can no longer distract enemies