Radar event
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
| Input | Meaning | Engine constant | Stored value |
|---|---|---|---|
0 | Combat event. | RADAREVENT_COMBAT | 0 |
1 | Non-combat event. | RADAREVENT_NONCOMBAT | 1 |
2 | Drop-zone event. | RADAREVENT_DROPZONE | 2 |
3 | Base-under-attack event. | RADAREVENT_BASE_ATTACKED | 3 |
4 | Harvester-under-attack event. | RADAREVENT_HARVESTER_ATTACKED | 4 |
5 | Enemy-detected event. | RADAREVENT_ENEMY_SENSED | 5 |
No enum values match this filter.
Used by
- Create Radar Event
TACTION_RADAR_EVENT
Source files
Linked at revision 59fae722af8c.