Prototype/ProgrammableSpeaker: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Converted to SMW format)
(Removed old prototype docs)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
<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/ProgrammableSpeakerPrototype.html https://lua-api.factorio.com/latest/prototypes/ProgrammableSpeakerPrototype.html]
A [[programmable speaker]].


{{Prototype TOC|programmable-speaker}}
</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>
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
 
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}}
Must be an electric or void energy source.
 
{{Prototype property|energy_usage_per_tick|[[Types/Energy|Energy]]}}
 
{{Prototype property|sprite|[[Types/Sprite|Sprite]]}}
 
{{Prototype property|maximum_polyphony|[[Types/uint32|uint32]]}}
 
{{Prototype property|instruments|[[Types/table|table]]}}
Array of ''instrument''s.
 
An ''instrument'' is a table with the following members:
 
* name - [[Types/string|string]] - Mandatory
* notes - [[Types/table|table]] of ''note''s - Mandatory
 
A ''note'' is a table with the following members:
* name - [[Types/string|string]] - Mandatory
* sound - [[Types/Sound|Sound]] - Mandatory
 
== Optional properties ==
 
{{Prototype property|audible_distance_modifier|[[Types/float|float]]|1|optional=true}}
 
{{Prototype property|circuit_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}}
 
{{Prototype property|circuit_wire_max_distance|[[Types/double|double]]|0|optional=true}}
 
{{Prototype property|draw_copper_wires|[[Types/bool|bool]]|true|optional=true}}
 
{{Prototype property|draw_circuit_wires|[[Types/bool|bool]]|true|optional=true}}
 
{{Prototype property|circuit_connector_sprites|[[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}}

Latest revision as of 14:32, 25 October 2024

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/ProgrammableSpeakerPrototype.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.