achievement_available

Check to see if the chosen leaderboard is available.

Syntax:

achievement_available()


Returns: Boolean


Description

This function will return true if the user is currently connected to the internet and the chosen leaderboard and achievement system is available, otherwise it will return false.

Example:

if achievement_available() achievement_post("ach_Level1", 100);

The above code will check that the leaderboard service is available and if so, post to it.


Back: Achievements and Leaderboards
Next: achievement_post
© Copyright YoYo Games Ltd. 2018 All Rights Reserved