HasSpotlight
Whether a structure has a swept spotlight beam.
- Applies to
- BuildingType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- boolean
- When omitted
no
[GASPOT] ; the stock light towerHasSpotlight=trueA structure with the flag gets a spotlight beam when it is placed on the map and loses it when it is taken off the map. The beam starts out sweeping. Successive beams start their sweep in alternating directions, so a row of towers does not swing in unison.
The [General] spotlight settings control the beam:
SpotlightLocationRadiusandSpotlightMovementRadiusplace the beam and its pivot.SpotlightAngle,SpotlightSpeedandSpotlightAccelerationdrive the sweep.SpotlightRadiussets the base radius within which a sweeping beam detects an intruder. Detection only springs the Enemy In Spotlight… trigger events on the structure’s tag, and a structure with no tag does not look for intruders.
The beam is drawn, and detects intruders, only while its structure is operational, as Fields, fences and lights describes.
A map can give each placed structure its own spotlight behavior, so a tower can start with its beam circling, following the nearest non-allied soldier or vehicle near the beam, or switched off and invisible. A following beam with nothing to follow goes back to sweeping. The Change Light Behavior trigger action switches the beam of every structure tagged with the trigger between those states. Neither setting gives a beam to a structure without the flag.
The flag has nothing to do with the colored glow a structure casts on the ground around it, which LightIntensity sets. A type may set either, both or neither.