This function is deprecated and will always return true. Do not use it for new work.
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts.
This function determines if a given badge is associated with the current game. It returns true if the badge is associated with the current game.
Badges can only be awarded from a place that is part of the game associated with the badge. This means, for example, a developer cannot award a badge associated with another developer’s game.
Even if this returns true, a badge may still not be award-able. For example, it may be disabled. For more information on the criteria for awarding badges see
The badge ID of the badge.
True if the badge is associated with the current game.
Awarding a Badge
This code sample includes a simple function for awarding a badge.