Prototype/PowerSwitch
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