Revision Difference
player_manager.TranslatePlayerModel#512527
<function name="TranslatePlayerModel" parent="player_manager" type="libraryfunc">⤶
<description>Returns the valid model path for a simplified name.</description>⤶
<realm>Shared</realm>⤶
<args>⤶
<arg name="shortName" type="string">The short name of the model.</arg>⤶
</args>⤶
<rets>⤶
<ret name="" type="string">The valid model path for the short name.</ret>⤶
</rets>⤶
</function>⤶
⤶
<example>⤶
<description>Print the valid model path for "Alyx".</description>⤶
<code>print(player_manager.TranslatePlayerModel("alyx"))</code>⤶
<output>Console outputs: "models/player/alyx.mdl"</output>⤶
⤶
</example>