Achievement
Helper functions to control the achievement system
Reference
Functions
meta:AchievementCheck(class)
View source »Runs the achievement's check function and if it returns true, awards the achievement
Parameters
-
class
string
Achievement class
meta:AchievementGive(class[, skipPoints=false])
View source »Gives an achievement to a player
Parameters
-
class
string
Achievement class
-
skipPoints
boolean
default: false
Wether to skip calculating the points from this achievement
meta:AchievementHas(class)
View source »Returns if a player has an achievement
Parameters
-
class
string
Achievement class
Returns
-
bool
Has achievement
meta:AchievementTake(class)
View source »Takes an achievement from a player
Parameters
-
class
string
Achievement class
meta:CalculateAchievementPoints()
View source »Calculates the achievement points and stores them in the SYNC_TROPHYPOINTS SyncVar on the player
Returns
-
int
Achievement points