Types/SpiderEnginePrototype: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (aaaaaaaaaa)
(Updated styling of prototype doc migration note)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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/types/SpiderEnginePrototype.html https://lua-api.factorio.com/latest/types/SpiderEnginePrototype.html]
</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>
Used by [[Prototype/SpiderVehicle]].
Used by [[Prototype/SpiderVehicle]].


== 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/table|array]] of [[Types/SpiderLegSpecification|SpiderLegSpecification]]

Latest revision as of 10:42, 21 September 2023

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/types/SpiderEnginePrototype.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.


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.