Skip to content

RadiantConnect: MatchEvents

MatchEvents allows developers to react to key match lifecycle events in the game, such as when a map is loaded, a match starts, or a match ends. These events provide relevant data about the match state, enabling real-time integration and tracking.

Danger

The events only work while the valorant game is in focus, being tabbed out will not work.


Overview

Access the match events through initiator.GameEvents (or your MatchEvents instance). You can subscribe to events to receive updates on the match state.


Events


OnMapLoaded

Description: Triggered when a new map has loaded.
Event Data: string? — Name of the map that was loaded.


OnMatchStarted

Description: Triggered when a match starts.
Event Data: string? — Currently null, but can be used to indicate the start of a match.


OnMatchEnded

Description: Triggered when a match ends.
Event Data: string — Name of the winning team.


Handling Events

Subscribe to match events like this:

C#
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
initiator.GameEvents.Match.OnMapLoaded += mapName =>
{
    Console.WriteLine($"Map loaded: {mapName}");
};

initiator.GameEvents.Match.OnMatchStarted += _ =>
{
    Console.WriteLine("Match started!");
};

initiator.GameEvents.Match.OnMatchEnded += winningTeam =>
{
    Console.WriteLine($"Match ended. Winning team: {winningTeam}");
};