Garry's Mod Wiki

Revision Difference

WEAPON:PostDrawViewModel#552955

<function name="PostDrawViewModel" parent="WEAPON" type="hook"> <ishook>yes</ishook>⤶ <description> Called after the view model has been drawn while the weapon in use. This hook is called from the default implementation of <page>GM:PostDrawViewModel</page>, and as such, will not occur if it has been overridden. <page>WEAPON:ViewModelDrawn</page> is an alternative hook which is always called before <page>GM:PostDrawViewModel</page>. </description> <realm>Client</realm> <predicted>No</predicted>⤶ <args> <arg name="vm" type="Entity">This is the view model entity after it is drawn</arg> <arg name="weapon" type="Weapon">This is the weapon that is from the view model (same as self)</arg> <arg name="ply" type="Player">The owner of the view model</arg> </args> </function>