Garry's Mod Wiki

Revision Difference

achievements.GetCount#567726

<function name="GetCount" parent="achievements" type="libraryfunc"> <description>Retrieves the progress of the given achievement.</description> <description>Retrieves progress of given achievement.</description> <realm>Client and Menu</realm> <args> <arg name="achievementID" type="number">The ID of the achievement.</arg> </args> <rets> <ret name="" type="number">The numerical progress. One-time achievements **always** have the progress of 0.</ret> </rets> </function> <example> <description>Prints your current progress for every achievement into the console.</description> <code> for i = 1, achievements.Count() - 1 do print( achievements.GetName( i ), achievements.GetCount( i ) ) end </code> </example>