achievements.GetGoal

From GMod Wiki

Jump to: navigation, search
Function
Syntax achievements.GetGoal( Number AchievementID )
Where is this used?
Description:
Returns the number of whatever you need to complete the achievement.
Returns: Number Goal
Part of Library: Achiv
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Achievements.GetGoal]Achievements.GetGoal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints how many maps you need to play to get the achievement
Used onNewerClient.png
Code
print("You have to play this many maps: " .. achievements.GetGoal(6))
OutputHow many maps you need to play to get the achievement.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox