Skip to content

HasSpotlight

Whether a structure has a swept spotlight beam.

Specification
Applies to
BuildingType
File
rules.ini
Section
[<ObjectType ID>]
Value
boolean
When omitted
no
rules.ini
[GASPOT] ; the stock light tower
HasSpotlight=true

A 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:

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.