Skip to content

Radar event

INI referenceEnumsRadarEventType

Radar-notification kinds used by trigger actions that create map events.

Engine enum
RadarEventType
Input form
Integer

A radar event is the rotating box that closes in on one cell of the radar map to draw the player’s eye there. The engine raises one when a base is attacked, when a harvester is attacked, and when an enemy is sensed; a map author raises any of the six through the Create Radar Event trigger action. The kinds differ in the color they pulse: combat and the two attack events cycle orange to dark red, non-combat and drop-zone events green, and an enemy-sensed event yellow.

The rules.ini [General] lists RadarEventDurations, RadarEventVisibilityDurations, and RadarEventSuppressionDistances are indexed by these values positionally: one comma-separated entry per row below, in the order shown, and the lookup applies no bounds check, so a list shorter than six entries reads past its end for the later kinds. Only combat, harvester-attacked, and enemy-sensed events consult a suppression distance; the remaining three parse one and never read it.

Values

6 of 6

InputMeaningEngine constantStored value
0Combat event.RADAREVENT_COMBAT0
1Non-combat event.RADAREVENT_NONCOMBAT1
2Drop-zone event.RADAREVENT_DROPZONE2
3Base-under-attack event.RADAREVENT_BASE_ATTACKED3
4Harvester-under-attack event.RADAREVENT_HARVESTER_ATTACKED4
5Enemy-detected event.RADAREVENT_ENEMY_SENSED5

Used by

Source files

Linked at revision 59fae722af8c.