Garry's Mod Wiki

Revision Difference

PLAYER:ViewModelChanged#512587

<function name="ViewModelChanged" parent="PLAYER" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Called when the player changes their weapon to another one causing their viewmodel model to change</description>⤶ <realm>Client</realm>⤶ <file line="92">gamemodes/base/gamemode/player_class/player_default.lua</file>⤶ <args>⤶ <arg name="viewmodel" type="Entity">The viewmodel that is changing</arg>⤶ <arg name="old" type="string">The old model</arg>⤶ <arg name="new" type="string">The new model</arg>⤶ </args>⤶ </function>⤶ ⤶