SpotlightRadius
Base radius, in leptons, within which a spotlight notices an intruder.
- Applies to
- global rules
- File
rules.ini- Section
[General]- Value
- integer
- When omitted
175
SpotlightRadius is the radius at which a spotlight detects intruders before it widens. A beam closer to its structure than SpotlightLocationRadius detects at exactly this radius. Farther out, the radius grows by about seven and a half leptons for each sweep stage the beam has reached. A stage is a tenth of the gap between SpotlightLocationRadius and SpotlightMovementRadius. Only a structure whose type sets HasSpotlight=yes has a beam.
[General]SpotlightRadius=256 ; one cellThe detection radius also sets how far apart the beam’s two glowing edges spread where they meet the pool of light, so a beam that detects farther looks broader. When the detection radius is larger than the beam’s distance from its structure, the edges are not drawn.
Detection only matters to triggers. A sweeping beam whose structure has a tag springs the Enemy In Spotlight… and Enemy In Spotlight… (repeating) events when an infantry unit or vehicle that is not allied to the structure’s owner stands within the detection radius plus 30 leptons. Only the nine cells around the beam are searched, so a radius that reaches past them catches nobody farther out.
A beam set to circle its structure never springs these events. A following beam springs them only on the frame it loses its target and goes back to sweeping. Fields, fences and lights covers the power the structure needs for its beam to be drawn and to detect.