Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.08 KB

callbacks.md

File metadata and controls

40 lines (33 loc) · 1.08 KB

List of Callbacks, as sent from a server

normal callbacks

Refer to the Maniaplanet docs.

script callbacks

Generally, script callbacks are handled with the "normal" callback ManiaPlanet.ModeScriptCallbackArray, where the first parameter in the parameter array is the callback name and the second is JSON payload containing the actual callback information. In the following, there's an overview of some common callbacks and the data they return:

  • Trackmania.Event.Waypoint (instead of normal Checkpoint and Finish callbacks):

    • time
    • login
    • accountid
    • racetime
    • laptime
    • checkpointinrace (index)
    • checkpointinlap (index)
    • isendrace
    • isendlap
    • isinfinitelaps
    • isindependentlaps
    • blockid
    • speed (m/s)
  • Trackmania.Event.Respawn

    • time
    • login
    • accountid
    • nbrespawns
    • racetime
    • laptime
    • checkpointinrace (index)
    • checkpointinlap (index)
    • speed
  • Trackmania.Event.GiveUp

    • time
    • login
    • accountid