Prototype/Radar
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Radar
A radar.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
energy_usage
Type: Energy
The amount of energy this radar uses.
energy_per_sector
Type: Energy
The amount of energy it takes to scan a sector. This value doesn't have any effect on nearby scanning.
energy_per_nearby_scan
Type: 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.
energy_source
Type: EnergySource
The energy source for this radar.
pictures
Type: RotatedSprite
max_distance_of_sector_revealed
Type: uint32
The radius of the area this radar can chart, in chunks.
max_distance_of_nearby_sector_revealed
Type: uint32
The radius of the area constantly revealed by this radar, in chunks.
Optional properties
radius_minimap_visualisation_color
Type: Color
rotation_speed
Type: double
Default: 0.01