Skip to content
Tate Greeves edited this page Sep 7, 2019 · 2 revisions

Developer API

COD 2.0 comes bundled with a powerful API for both creating achievements, listening to custom events, writing and reading from level and player stats registry

Custom Events

  • CODLeaveEvent ~ When a player leaves COD
  • CODJoinEvent ~ When a player joins COD
  • CODKillEvent ~ When a player kills another player (Warning can return null information, be sure to check)
  • CODStartEvent ~When a game starts
  • CODEndEvent ~When a game ends

Achievement API

If you want to create some of your own achievements, simply call AchievementAPI (Each method is static so there is no instance creating required on your end)

Level API

COD handles the leveling and prestige system itself. However, you can get the level, prestige, exp as well as setting each of them respectively. Simply call LevelRegistryAPI (Each method is static so there is no instance creating required on your end)

Kills, Deaths and Wins API

COD handles kills, deaths and wins itself. However, you can get the kills, deaths, wins as well as setting each of them respectively. Simply call RegistryAPI (Each method is static so there is no instance creating required on your end)

Clone this wiki locally