Garry's Mod Wiki

Revision Difference

achievements.GetDesc#513986

<function name="GetDesc" parent="achievements" type="libraryfunc">⤶ <description>Retrieves description of given achievement</description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="achievementID" type="number">The ID of achievement to retrieve description of. Note: IDs start from 0, not 1.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="string">Description of an achievement</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Will print achievement descriptions for all of your achievements into console</description>⤶ <code>⤶ for i = 0, achievements.Count() - 1 do⤶ print( achievements.GetDesc( i ) )⤶ end⤶ </code>⤶ <output>Prints achievement descriptions for all of your achievements into console.</output>⤶ ⤶ </example>