Writing an event to power an event-based achievement
Sample XblEventsWriteInGameEvent code that fires a game event so XBOX Live stat rules update stats and unlock event-based achievements.
This topic shows example code of how to write an in-game event.
When the event is fired, the event-based stats on the service are updated according to the stat rules that you’ve defined in Partner Center.
Those stats, in turn, power event-based achievements.
For more information, see XblEventsWriteInGameEvent.
Last modified on October 20, 2026
