Revision Difference
achievements.GetGoal#567719
<function name="GetGoal" parent="achievements" type="libraryfunc">
<description>Retrieves progress goal of given achievement.</description>
<description>Retrieves the end progress goal of the given achievement.</description>
<realm>Client and Menu</realm>
<args>
<arg name="achievementID" type="number">The ID of achievement to retrieve goal of. Note: IDs start from 0, not 1.</arg>
<arg name="achievementID" type="number">The ID of the achievement.</arg>
</args>
<rets>
<ret name="" type="number">Progress goal of an achievement.</ret>
<ret name="" type="number">The end progress goal.</ret>
</rets>
</function>
<example>
<description>Will print achievement progress and goals for all of your achievements into console.</description>
<description>Prints your current progress and the goal for every achievement into the console.</description>
<code>
for i = 0, achievements.Count() - 1 do
print( achievements.GetCount( i ) .. " / " .. achievements.GetGoal( i ) )
for i = 1, achievements.Count() - 1 do
print( achievements.GetName( i ), achievements.GetCount( i ) .. " / " .. achievements.GetGoal( i ) )
end
</code>
<output>Prints achievement progress and goals for all of your achievements into console.</output>⤶
⤶
</example></example>
Garry's Mod
Rust
Steamworks
Wiki Help