Prototype/Radar: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Migrated prototype doc to separate website)
(Removed old prototype docs)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''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/RadarPrototype.html https://lua-api.factorio.com/latest/prototypes/RadarPrototype.html]
<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/RadarPrototype.html https://lua-api.factorio.com/latest/prototypes/RadarPrototype.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 [https://forums.factorio.com/viewforum.php?f=233 on the forums].
</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}}
A [[radar]].
 
{{Prototype TOC|radar}}
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithOwner]].
 
{{Prototype property|energy_usage|[[Types/Energy|Energy]]}}
The amount of energy this radar uses.
 
{{Prototype property|energy_per_sector|[[Types/Energy|Energy]]}}
The amount of energy it takes to scan a sector. This value doesn't have any effect on nearby scanning.
 
{{Prototype property|energy_per_nearby_scan|[[Types/Energy|Energy]]}}
The amount of energy the radar has to consume for nearby scan to be performed.
Performance warning: nearby scan causes recharting of many chunks, which is expensive operation. If you want to make a radar that updates map more in real time, you should keep its range low. If you are making radar with high range, you should set this value such that nearby scan is performed once a second or so. For example if you set energy_usage to 100kW, setting energy_per_nearby_scan to 100kJ will cause nearby scan happen once per second. This value doesn't have any effect on sector scanning.
 
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}}
The energy source for this radar.
 
{{Prototype property|pictures|[[Types/RotatedSprite|RotatedSprite]]}}
 
{{Prototype property|max_distance_of_sector_revealed|[[Types/uint32|uint32]]}}
The radius of the area this radar can chart, in chunks.
 
{{Prototype property|max_distance_of_nearby_sector_revealed|[[Types/uint32|uint32]]}}
The radius of the area constantly revealed by this radar, in chunks.
 
== Optional properties ==
 
{{Prototype property|radius_minimap_visualisation_color|[[Types/Color|Color]]|optional=true}}
 
{{Prototype property|rotation_speed|[[Types/double|double]]|0.01|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/RadarPrototype.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.