Prototype/Radar: Difference between revisions
(Added performance warning to energy_per_nearby_scan) |
(→Mandatory properties: max_distance_of_.. descriptions) |
||
Line 23: | Line 23: | ||
{{Prototype property|max_distance_of_sector_revealed|[[Types/uint32|uint32]]}} | {{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]]}} | {{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 == | == Optional properties == |
Revision as of 17:01, 3 November 2019
Template:Prototype parent A radar.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
Template:Prototype property The amount of energy this radar uses.
Template:Prototype property The amount of energy it takes to scan a sector. This value doesn't have any effect on nearby scanning.
Template:Prototype property 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.
Template:Prototype property The energy source for this radar.
Template:Prototype property The radius of the area this radar can chart, in chunks.
Template:Prototype property The radius of the area constantly revealed by this radar, in chunks.