Garry's Mod Wiki

Revision Difference

WEAPON:AdjustMouseSensitivity#553203

<function name="AdjustMouseSensitivity" parent="WEAPON" type="hook"> <ishook>yes</ishook>⤶ <description>Allows you to adjust the mouse sensitivity. This hook only works if you haven't overridden <page>GM:AdjustMouseSensitivity</page>.</description> <realm>Client</realm> <rets> <ret name="" type="number">Sensitivity scale</ret> </rets> </function> <example> <description>Makes your sensitivity twice slower</description> <code> function SWEP:AdjustMouseSensitivity() return 0.5 end </code> </example>