Prototype/RailSignalBase: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(1.1: Collision requirements)
(1.1.51: Prototype/EntityWithOwner added)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
{{Prototype parent|Prototype/EntityWithOwner}}
The abstract base entity for both rail signals.
The abstract base entity for both rail signals.


Line 9: Line 9:


== Mandatory properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
This prototype inherits all the properties from [[Prototype/EntityWithOwner]].


{{Prototype property|animation|[[Types/RotatedAnimation|RotatedAnimation]]}}
{{Prototype property|animation|[[Types/RotatedAnimation|RotatedAnimation]]}}

Revision as of 19:27, 21 January 2022

Template:Prototype parent The abstract base entity for both rail signals.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithOwner.

Template:Prototype property

Optional properties

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property The maximum circuit wire distance for this entity.

Template:Prototype property

Template:Prototype property

Template:Prototype property Mandatory if circuit_wire_max_distance > 0.

Template:Prototype property Mandatory if circuit_wire_max_distance > 0.

Mandatory values

The collision_box of rail signals is hardcoded to {{-0.2, -0.2}, {0.2, 0.2}}.

Rail signals have additional requirements for the properties inherited from Prototype/Entity:

  • The "placeable-off-grid" flag will be ignored.
  • Rail signals must collide with each other, can be achieved by having the "rail-layer" collision mask layer on all rail signals.