Revision Difference
achievements.GetCount#565835
<function name="GetCount" parent="achievements" type="libraryfunc">
<description>Retrieves progress of given achievement.</description>
<realm>Client and Menu</realm>
<args>
<arg name="achievementID" type="number">The ID of achievement to retrieve progress of. Note: IDs start from 0, not 1.</arg>
</args>
</function>
<example>
<description>Will print achievement progress for all of your achievements into console</description>
<code>
for i = 0, achievements.Count() - 1 do
print( achievements.GetCount( i ) )
end
</code>
<output>
Prints achievement progress for all of your achievements into console.
Note: Non-progress based achievements will have 0, even if they are completed⤶
Note: Non-progress based achievements will have 0, even if they are completed.⤶
</output>
</example>
Garry's Mod
Rust
Steamworks
Wiki Help