SendProgressEvent
This function can be used to send a progression event to see how many users can make it through your game levels. By default, the main lua script includes code to manage these events.
Syntax
- static bool SendProgressEvent(const std::string& status, const std::string& levelname)
- static bool SendProgressEvent(const std::string& status, const std::string& levelname, const int score)
- static bool SendProgressEvent(const std::string& status, const std::string& levelname, const int score, const int attempt_num)
Parameters
- status: this value must be "Start", "Fail", or "Complete".
- levelname: the name of the map or level that is currently being played.
- score: an optional value to record a score for the player.
- attempt_num: an optional value to record the number of attempts before the player completes the level.
Returns
Returns true if analytics are enabled, otherwise false is returned.