Skip to content

Instantly share code, notes, and snippets.

@rjriel
Created May 28, 2019 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjriel/dc14749a2a5e8af897bf7b997ef7fd14 to your computer and use it in GitHub Desktop.
Save rjriel/dc14749a2a5e8af897bf7b997ef7fd14 to your computer and use it in GitHub Desktop.
await qixApp.createObject({
qInfo: { qId: "Badge", qType: "GenericObject" },
badge: "0",
raceId: ""
})
await qixApp.doSave()
badgeObject = await qixApp.getObject("Badge")
badgeObject.on("changed", async () => {
checkBadge()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment