In other languages: Deutsch

Military units and structures: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(→‎Military units: Added wiki links and force)
(1.1.51: Prototype/EntityWithOwner added)
 
(10 intermediate revisions by 3 users not shown)
Line 3: Line 3:


* [[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" (spacebar).
* The [[player]], when holding down "shoot enemy" (spacebar).


Military structures, but not units, will also automatically be attacked by [[artillery turret]]s and [[artillery wagon]]s.
There are a few exceptions:
* [[Artillery turret]]s and [[Artillery wagon]]s will not attack units automatically, they only attack structures automatically.
* Biters and spitters do ''not'' prioritize [[construction robot]]s or [[logistic robot]]s over other targets.
 


__TOC__
__TOC__


== Modding ==
== Modding ==
Military units and structures are identified by a hard coded flag on certain prototypes. This cannot be changed by [[modding]]. The military prototypes are listed in the table below.
Military units and structures are identified by [[Prototype/EntityWithOwner#is_military_target|a flag]] on [[Prototype/EntityWithOwner]]. 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 !! Force !! Prototype
! Icon !! Name !! Default<br>force !! Prototype
|-
|-
| [[File:Player.png|center]]
| [[File:Player.png|center|32px]]
| [[Player]]
| [[Player]]
| player
| player
| [[Prototype/Character|character]]
| [[Prototype/Character|character]]
|-
|-
| [[File:Defender_capsule.png|center]]
| [[File:Defender_capsule.png|center|32px]]
| [[Defender capsule]]
| [[Defender capsule]]
| player
| player
| [[Prototype/CombatRobot|combat-robot]]
| [[Prototype/CombatRobot|combat-robot]]
|-
|-
| [[File:Distractor_capsule.png|center]]
| [[File:Distractor_capsule.png|center|32px]]
| [[Distractor capsule]]
| [[Distractor capsule]]
| player
| player
| [[Prototype/CombatRobot|combat-robot]]
| [[Prototype/CombatRobot|combat-robot]]
|-
|-
| [[File:Destroyer_capsule.png|center]]
| [[File:Destroyer_capsule.png|center|32px]]
| [[Destroyer capsule]]
| [[Destroyer capsule]]
| player
| player
| [[Prototype/CombatRobot|combat-robot]]
| [[Prototype/CombatRobot|combat-robot]]
|-
|-
| [[File:Construction_robot.png|center]]
| [[File:Construction_robot.png|center|32px]]
| [[Construction robot]]
| [[Construction robot]]
| player
| player
| [[Prototype/ConstructionRobot|construction-robot]]
| [[Prototype/ConstructionRobot|construction-robot]]
|-
|-
| [[File:Logistic_robot.png|center]]
| [[File:Logistic_robot.png|center|32px]]
| [[Logistic robot]]
| [[Logistic robot]]
| player
| player
| [[Prototype/LogisticRobot|logistic-robot]]
| [[Prototype/LogisticRobot|logistic-robot]]
|-
|-
| [[File:Land_mine.png|center]]
| [[File:Land_mine.png|center|32px]]
| [[Land mine]]
| [[Land mine]]
| player
| player
| [[Prototype/LandMine|land-mine]]
| [[Prototype/LandMine|land-mine]]
|-
| [[File:Compilatron.png|center]]
| [[Campaign#Introduction|Compilatron]]
| player
| [[Prototype/Unit|unit]]
|-
|-
| [[File:small_biter.png|center|64px]]
| [[File:small_biter.png|center|64px]]
Line 95: Line 93:
| [[File:behemoth_spitter.png|center|72px]]
| [[File:behemoth_spitter.png|center|72px]]
| [[Enemies#Spitters|Behemoth spitter]]
| [[Enemies#Spitters|Behemoth spitter]]
| enemy
| [[Prototype/Unit|unit]]
|-
| [[File:Compilatron.png|center|32px]]
| Compilatron
| enemy
| enemy
| [[Prototype/Unit|unit]]
| [[Prototype/Unit|unit]]
Line 102: Line 105:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Icon !! Name !! Prototype
! Icon !! Name !! Default<br>force !! Prototype
|-
|-
| [[File:Gun_turret.png|center]]
| [[File:Gun_turret.png|center|32px]]
| Gun turret
| [[Gun turret]]
| player
| [[Prototype/AmmoTurret|ammo-turret]]
| [[Prototype/AmmoTurret|ammo-turret]]
|-
|-
| [[File:Flamethrower_turret.png|center]]
| [[File:Flamethrower_turret.png|center|32px]]
| Flamethrower turret
| [[Flamethrower turret]]
| player
| [[Prototype/FluidTurret|fluid-turret]]
| [[Prototype/FluidTurret|fluid-turret]]
|-
|-
| [[File:Laser_turret.png|center]]
| [[File:Laser_turret.png|center|32px]]
| Laser turret
| [[Laser turret]]
| player
| [[Prototype/ElectricTurret|electric-turret]]
| [[Prototype/ElectricTurret|electric-turret]]
|-
|-
| [[File:Artillery_turret.png|center]]
| [[File:Artillery_turret.png|center|32px]]
| Artillery turret
| [[Artillery turret]]
| player
| [[Prototype/ArtilleryTurret|artillery-turret]]
| [[Prototype/ArtilleryTurret|artillery-turret]]
|-
|-
| [[File:Radar.png|center]]
| [[File:Radar.png|center|32px]]
| Radar
| [[Radar]]
| player
| [[Prototype/Radar|radar]]
| [[Prototype/Radar|radar]]
|-
|-
| [[File:Small_worm.png|center|50px]]
| [[File:Small_worm.png|center|50px]]
| Small worm
| [[Enemies#Worms|Small worm]]
| enemy
| [[Prototype/Turret|turret]]
| [[Prototype/Turret|turret]]
|-
|-
| [[File:Medium_worm.png|center|50px]]
| [[File:Medium_worm.png|center|50px]]
| Medium worm
| [[Enemies#Worms|Medium worm]]
| enemy
| [[Prototype/Turret|turret]]
| [[Prototype/Turret|turret]]
|-
|-
| [[File:Big_worm.png|center|50px]]
| [[File:Big_worm.png|center|50px]]
| Big worm
| [[Enemies#Worms|Big worm]]
| enemy
| [[Prototype/Turret|turret]]
| [[Prototype/Turret|turret]]
|-
|-
| [[File:Behemoth_worm.png|center|50px]]
| [[File:Behemoth_worm.png|center|50px]]
| Behemoth worm
| [[Enemies#Worms|Behemoth worm]]
| enemy
| [[Prototype/Turret|turret]]
| [[Prototype/Turret|turret]]
|-
|-
| [[File:Biter_nest.png|center|50px]]
| [[File:Biter_nest.png|center|50px]]
| Biter spawner
| [[Enemies#Nests|Biter spawner]]
| [[Prototype/EnemySpawner|enemy-spawner]]
| enemy
| [[Prototype/EnemySpawner|unit-spawner]]
|-
|-
| [[File:Spitter_nest.png|center|50px]]
| [[File:Spitter_nest.png|center|50px]]
| Spitter spawner
| [[Enemies#Nests|Spitter spawner]]
| [[Prototype/EnemySpawner|enemy-spawner]]
| enemy
| [[Prototype/EnemySpawner|unit-spawner]]
|-
|-
|
|
| Player port
| [[Prototype/PlayerPort|Player port]]
|
| [[Prototype/PlayerPort|player-port]]
| [[Prototype/PlayerPort|player-port]]
|-
|-
|
|
| SimpleEntityWithForce
| [[Prototype/SimpleEntityWithForce|SimpleEntityWithForce]]
|
| [[Prototype/SimpleEntityWithForce|simple-entity-with-force]]
| [[Prototype/SimpleEntityWithForce|simple-entity-with-force]]
|}
|}

Latest revision as of 19:25, 21 January 2022

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:

There are a few exceptions:


Modding

Military units and structures are identified by a flag on Prototype/EntityWithOwner. 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.png
Player player character
Defender capsule.png
Defender capsule player combat-robot
Distractor capsule.png
Distractor capsule player combat-robot
Destroyer capsule.png
Destroyer capsule player combat-robot
Construction robot.png
Construction robot player construction-robot
Logistic robot.png
Logistic robot player logistic-robot
Land mine.png
Land mine player land-mine
Small biter.png
Small biter enemy unit
Small spitter.png
Small spitter enemy unit
Medium biter.png
Medium biter enemy unit
Medium spitter.png
Medium spitter enemy unit
Big biter.png
Big biter enemy unit
Big spitter.png
Big spitter enemy unit
Behemoth biter.png Behemoth biter enemy unit
Behemoth spitter.png
Behemoth spitter enemy unit
Compilatron.png
Compilatron enemy unit

Military structures

Icon Name Default
force
Prototype
Gun turret.png
Gun turret player ammo-turret
Flamethrower turret.png
Flamethrower turret player fluid-turret
Laser turret.png
Laser turret player electric-turret
Artillery turret.png
Artillery turret player artillery-turret
Radar.png
Radar player radar
Small worm.png
Small worm enemy turret
Medium worm.png
Medium worm enemy turret
Big worm.png
Big worm enemy turret
Behemoth worm.png
Behemoth worm enemy turret
Biter nest.png
Biter spawner enemy unit-spawner
Spitter nest.png
Spitter spawner enemy unit-spawner
Player port player-port
SimpleEntityWithForce simple-entity-with-force