About Event Announcer
HUD based alert system, no configuration required.
The main objective is to broadcast an alert when important server wide events are starting, such as:
- Bradley event starts
- Cargo ship event starts
- Cargo plane (airdrop) event starts
- Patrol event starts
-
Chinook event starts
- Oilrig defense
- Standard hackable crate drop
This plugin also exposes an API which allows other plugins to use the same alert system to broadcast messages.
[PluginReference] private Plugin OxidationEventAnnouncer; // (...) private void OnMyImportantEvent() { OxidationEventAnnouncer.Call("Broadcast", "My important event has started"); }
You can easily change the background color and text color of the announcement.
The following snippet will change the background color to #00FF00 and the text color to #F0F0F0.
[PluginReference] private Plugin OxidationEventAnnouncer; // (...) private void OnMyImportantEvent() { OxidationEventAnnouncer.Call("Broadcast", "My important event has started", "#00FF00", "#F0F0F0"); }