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