Prototype/PowerSwitch: Difference between revisions
(1.1.51: Prototype/EntityWithOwner added) |
(Updated styling of prototype doc migration note) |
||
(2 intermediate revisions by the same user 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/prototypes/PowerSwitchPrototype.html https://lua-api.factorio.com/latest/prototypes/PowerSwitchPrototype.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> | |||
{{Prototype parent|Prototype/EntityWithOwner}} | {{Prototype parent|Prototype/EntityWithOwner}} | ||
A [[power switch]]. | A [[power switch]]. |
Latest revision as of 10:43, 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/prototypes/PowerSwitchPrototype.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.
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/PowerSwitch
A power switch.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
power_on_animation
Type: Animation
overlay_start
Type: Animation
overlay_loop
Type: Animation
led_on
Type: Sprite
led_off
Type: Sprite
overlay_start_delay
Type: uint8
circuit_wire_connection_point
Type: WireConnectionPoint
left_wire_connection_point
Type: WireConnectionPoint
right_wire_connection_point
Type: WireConnectionPoint
Optional properties
wire_max_distance
Type: double
Default: 0
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true