Garry's Mod Wiki

achievements

This library is used internally by Garry's Mod to help keep track of achievement progress and unlock the appropriate achievements once a certain number is reached.

Methods

achievements.BalloonPopped()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of balloons burst. Once this count reaches 1000, the 'Popper' achievement is unlocked.
number achievements.Count()
Returns the amount of achievements in Garry's Mod.
achievements.EatBall()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of balls eaten. Once this count reaches 200, the 'Ball Eater' achievement is unlocked.
achievements.GetCount( number achievementID )
Retrieves progress of given achievement
string achievements.GetDesc( number achievementID )
Retrieves description of given achievement
number achievements.GetGoal( number achievementID )
Retrieves progress goal of given achievement
string achievements.GetName( number achievementID )
Retrieves name of given achievement
achievements.IncBaddies()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of baddies killed. Once this count reaches 1000, the 'War Zone' achievement is unlocked.
achievements.IncBystander()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of innocent animals killed. Once this count reaches 1000, the 'Innocent Bystander' achievement is unlocked.
achievements.IncGoodies()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of friendly NPCs killed. Once this count reaches 1000, the 'Bad Friend' achievement is unlocked.
boolean achievements.IsAchieved( number AchievementID )
Used in GMod 12 in the achievements menu to show the user if they have unlocked certain achievements.
achievements.Remover()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of things removed. Once this count reaches 5000, the 'Destroyer' achievement is unlocked.
achievements.SpawnedNPC()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of NPCs spawned. Once this count reaches 1000, the 'Procreator' achievement is unlocked.
achievements.SpawnedProp()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of props spawned. Once this count reaches 5000, the 'Creator' achievement is unlocked.
achievements.SpawnedRagdoll()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of ragdolls spawned. Once this count reaches 2000, the 'Dollhouse' achievement is unlocked.
achievements.SpawnMenuOpen()
This is used internally - although you're able to use it you probably shouldn't. Adds one to the count of how many times the spawnmenu has been opened. Once this count reaches 100,000, the 'Menu User' achievement is unlocked.

Page Links


Special Pages


Wikis

?

Render Time: 21ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 5