Prototype/EntityWithOwner: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(1.1.51: Prototype/EntityWithOwner added)
 
(Removed old prototype docs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/EntityWithOwnerPrototype.html https://lua-api.factorio.com/latest/prototypes/EntityWithOwnerPrototype.html]
Abstract base of all entities with a force in the game. These entities have a [https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.unit_number unit_number] during runtime. Can be high priority [[Military_units_and_structures|military targets]].


{{Prototype TOC|''abstract''}}
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
== Extensions ==
<div class="factorio-list">
* [[Prototype/Accumulator]] '''accumulator'''
* [[Prototype/ArtilleryTurret]] '''artillery-turret'''
* [[Prototype/Beacon]] '''beacon'''
* [[Prototype/Boiler]] '''boiler'''
* [[Prototype/BurnerGenerator]] '''burner-generator'''
* [[Prototype/Character]] '''character'''
* [[Prototype/Combinator]] <abstract>
** [[Prototype/ArithmeticCombinator]] '''arithmetic-combinator'''
** [[Prototype/DeciderCombinator]] '''decider-combinator'''
* [[Prototype/ConstantCombinator]] '''constant-combinator'''
* [[Prototype/Container]] '''container'''
** [[Prototype/LogisticContainer]] '''logistic-container'''
*** [[Prototype/InfinityContainer]] '''infinity-container'''
* [[Prototype/CraftingMachine]] <abstract>
** [[Prototype/AssemblingMachine]] '''assembling-machine'''
*** [[Prototype/RocketSilo]] '''rocket-silo'''
** [[Prototype/Furnace]] '''furnace'''
* [[Prototype/ElectricEnergyInterface]] '''electric-energy-interface'''
* [[Prototype/ElectricPole]] '''electric-pole'''
* [[Prototype/EnemySpawner]] '''unit-spawner'''
* [[Prototype/FlyingRobot]] <abstract>
** [[Prototype/CombatRobot]] '''combat-robot'''
** [[Prototype/RobotWithLogisticInterface]] <abstract>
*** [[Prototype/ConstructionRobot]] '''construction-robot'''
*** [[Prototype/LogisticRobot]] '''logistic-robot'''
* [[Prototype/Gate]] '''gate'''
* [[Prototype/Generator]] '''generator'''
* [[Prototype/HeatInterface]] '''heat-interface'''
* [[Prototype/HeatPipe]] '''heat-pipe'''
* [[Prototype/Inserter]] '''inserter'''
* [[Prototype/Lab]] '''lab'''
* [[Prototype/Lamp]] '''lamp'''
* [[Prototype/LandMine]] '''land-mine'''
* [[Prototype/LinkedContainer]] '''linked-container'''
* [[Prototype/Market]] '''market'''
* [[Prototype/MiningDrill]] '''mining-drill'''
* [[Prototype/OffshorePump]] '''offshore-pump'''
* [[Prototype/Pipe]] '''pipe'''
** [[Prototype/InfinityPipe]] '''infinity-pipe'''
* [[Prototype/PipeToGround]] '''pipe-to-ground'''
* [[Prototype/PlayerPort]] '''player-port'''
* [[Prototype/PowerSwitch]] '''power-switch'''
* [[Prototype/ProgrammableSpeaker]] '''programmable-speaker'''
* [[Prototype/Pump]] '''pump'''
* [[Prototype/Radar]] '''radar'''
* [[Prototype/Rail]] <abstract>
** [[Prototype/CurvedRail]] '''curved-rail'''
** [[Prototype/StraightRail]] '''straight-rail'''
* [[Prototype/RailSignalBase]] <abstract>
** [[Prototype/RailChainSignal]] '''rail-chain-signal'''
** [[Prototype/RailSignal]] '''rail-signal'''
* [[Prototype/Reactor]] '''reactor'''
* [[Prototype/Roboport]] '''roboport'''
* [[Prototype/SimpleEntityWithOwner]] '''simple-entity-with-owner'''
** [[Prototype/SimpleEntityWithForce]] '''simple-entity-with-force'''
* [[Prototype/SolarPanel]] '''solar-panel'''
* [[Prototype/StorageTank]] '''storage-tank'''
* [[Prototype/TrainStop]] '''train-stop'''
* [[Prototype/TransportBeltConnectable]] <abstract>
** [[Prototype/LinkedBelt]] '''linked-belt'''
** [[Prototype/Loader1x1]] '''loader-1x1'''
** [[Prototype/Loader1x2]] '''loader'''
** [[Prototype/Splitter]] '''splitter'''
** [[Prototype/TransportBelt]] '''transport-belt'''
** [[Prototype/UndergroundBelt]] '''underground-belt'''
* [[Prototype/Turret]] '''turret'''
** [[Prototype/AmmoTurret]] '''ammo-turret'''
** [[Prototype/ElectricTurret]] '''electric-turret'''
** [[Prototype/FluidTurret]] '''fluid-turret'''
* [[Prototype/Unit]] '''unit'''
* [[Prototype/Vehicle]] <abstract>
** [[Prototype/Car]] '''car'''
** [[Prototype/RollingStock]] <abstract>
*** [[Prototype/ArtilleryWagon]] '''artillery-wagon'''
*** [[Prototype/CargoWagon]] '''cargo-wagon'''
*** [[Prototype/FluidWagon]] '''fluid-wagon'''
*** [[Prototype/Locomotive]] '''locomotive'''
** [[Prototype/SpiderVehicle]] '''spider-vehicle'''
* [[Prototype/Wall]] '''wall'''
</div>
 
== Optional properties ==
 
{{Prototype property|is_military_target|[[Types/bool|bool]]|false|optional=true}}
Whether this prototype should be a high priority target for enemy forces. See [[Military units and structures]].
 
<div class="toccolours mw-collapsible mw-collapsed">
NOTE: '''Some entity types have their own default''' that differs from the above default. They are listed here:
<div class="mw-collapsible-content">
* [[Prototype/ArtilleryTurret]] - true
* [[Prototype/Character]] - true
* [[Prototype/EnemySpawner]] - true (cannot be set to false)
* [[Prototype/FlyingRobot]] - true
* [[Prototype/LandMine]] - true
* [[Prototype/PlayerPort]] - true
* [[Prototype/Radar]] - true
* [[Prototype/SimpleEntityWithForce]] - true
* [[Prototype/Turret]] - true
* [[Prototype/Unit]] - true (cannot be set to false)
</div></div>
 
{{Prototype property|allow_run_time_change_of_is_military_target|[[Types/bool|bool]]|false|optional=true}}
If this is true, this entities <code>is_military_target</code> property can be changed runtime (on the entity, not on the prototype itself).

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/EntityWithOwnerPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.