Achievement
Helper functions to control the achievement system
Functions
Player:AchievementCheck(class)
View source »Runs the achievement's check function and if it returns true, awards the achievement
Parameters
-
class
string
Achievement class
Player:AchievementGive(class, skipPoints)
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
Player:AchievementHas(class)
View source »Returns if a player has an achievement
Parameters
-
class
string
Achievement class
Returns
-
bool
Has achievement
Player:AchievementTake(class)
View source »Takes an achievement from a player
Parameters
-
class
string
Achievement class
Player:CalculateAchievementPoints()
View source »Calculates the achievement points and stores them in the SYNC_TROPHYPOINTS SyncVar on the player
Returns
-
int
Achievement points