achievements.GetDesc

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

Contents

Description

Retrieves description of given achievement

Arguments

number achievementID

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

Returns

string

Description of an achievement

Examples

Example

Will print achievement descriptions for all of your achievements into console

for i = 0, achievements.Count() - 1 do
	print( achievements.GetDesc( i ) )
end

Output:

Prints achievement descriptions for all of your achievements into console.
Personal tools
Navigation