achievements.GetGoal

From Garry's Mod
Jump to: navigation, search
 achievements.GetGoal( )

Contents

Description

Retrieves progress goal of given achievement

Arguments

number achievementID

The ID of achievement to retrieve goal of. Note: IDs start from 0, not 1.

Returns

number

Progress goal of an achievement

Examples

Example

Will print achievement progress and goals for all of your achievements into console

for i = 0, achievements.Count() - 1 do
	print( achievements.GetCount( i ) .. " / " .. achievements.GetGoal( i ) )
end

Output:

Prints achievement progress and goals for all of your achievements into console.
Personal tools
Navigation