Fighting Game · Guides & deep dives

Scripting Events

Subscribe to public gameplay events, record a small mod-scoped counter, and avoid private event namespaces.

3sections1 minread

On this page

Use this tutorial with community.examples.public-event-logger.

Goal#

Subscribe to public gameplay events, record a small mod-scoped counter, and avoid private event namespaces.

Steps#

  1. Review RegisterEventListener, ReadModStorage, and WriteModStorage in V2/docs/modding/generated/mod-api-reference.md.
  2. Open V2/ue/Content/V2/Modding/Examples/PublicEventLogger.mayamod/scripts/event_logger.lua.
  3. Confirm the listener uses Gameplay.Public.RoundStart.
  4. Confirm storage reads and writes remain mod-scoped.
  5. Package the example locally and serve it through the toolkit server.

Expected Result#

The example listens to allowed public events, persists only a small local count, and keeps network access denied in the manifest.