Types/SpiderEnginePrototype: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(→‎legs: PtreeItemOrArrayIterator)
(1.1.51: Prototype/EntityWithOwner added)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


== Mandatory properties ==
== Mandatory properties ==
=== legs ===
'''Type''': [[Types/SpiderLegSpecification|SpiderLegSpecification]] or [[Types/table|array]] of [[Types/SpiderLegSpecification|SpiderLegSpecification]]
== Optional properties ==
=== military_target ===
=== military_target ===
'''Type''': [[Types/string|string]]
'''Type''': [[Types/string|string]]


The name of the entity prototype that gets enemies interested in attacking the spider vehicle when nobody is in it. The base game uses a [[Prototype/SimpleEntityWithForce]]. See [[Military units and structures]] for prototype types that are attacked by enemies.
The string content is irrelevant, if it is present at all then the [[Prototype/SpiderVehicle]] is considered to have the [[Prototype/EntityWithOwner#is_military_target]] set to true. This gets enemies interested in attacking the spider vehicle even when nobody is in it.
 
=== legs ===
'''Type''': [[Types/SpiderLegSpecification|SpiderLegSpecification]] or [[Types/table|array]] of [[Types/SpiderLegSpecification|SpiderLegSpecification]]

Latest revision as of 19:26, 21 January 2022

Used by Prototype/SpiderVehicle.

Mandatory properties

legs

Type: SpiderLegSpecification or array of SpiderLegSpecification

Optional properties

military_target

Type: string

The string content is irrelevant, if it is present at all then the Prototype/SpiderVehicle is considered to have the Prototype/EntityWithOwner#is_military_target set to true. This gets enemies interested in attacking the spider vehicle even when nobody is in it.