# Subscribe to game Messages

# Subscribe to game Messages

The game triggers a bunch of Messages (events) you can subscribe to in your code in order to react to those messages.

For instance `VesselDeltaVCalculationMessage` for whenever the game is doing updates to any vessel deltaV, or `GameStateChangedMessage` for when the player enters a different screen (e.g. Flight state -> KSC state).

You could always do any check inside an `Update()` method of your plugin class, but using Messages is more efficient when you need to do checks on events that are not triggered very often.

**To see what Messages are being triggered on certain events you can use the** `**ShowKSP2Events**` **mod:**

<https://spacedock.info/mod/3375/ShowKSP2Events>, or download it with CKAN.


:::warning
**The ShowKSP2Events mod is not yet updated for KSP2 Redux.**

:::

This mod displays Messages as they are being triggered, colors them to make it easier to see when the event was triggered and it keeps a count of how many times an event has been triggered so far.

 ![](https://docs.ksp2redux.org/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2U4YmY4MDA3LWI4OWMtNDJiNy04MzRkLWUwZGQ5NjM2NGM2MC84NTY1NDU5MS0yODVmLTRiYTMtOTUxNi0xNjM5MDFkMzE1ZmYvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTM1MDkyMDAsImV4cCI6MTc5MzU5NTYwMH0.FvkcIjd0fvpON_eirHzs-Y3DgtN_O7cLGVkc85nQxPY " =1129x733")