Garry's Mod Wiki

Garry's Mod Wiki

  number GM:AdjustMouseSensitivity( number defaultSensitivity, number localFOV, number defaultFOV )

Description

Allows you to adjust the mouse sensitivity.

Arguments

1 number defaultSensitivity
The old sensitivity

In general it will be 0, which is equivalent to a sensitivity of 1.

2 number localFOV
Player's current FOV.
3 number defaultFOV
Default FOV.

Returns

1 number
A fraction of the normal sensitivity (0.5 would be half as sensitive).

Return -1 to not override and prevent subsequent hooks and WEAPON:AdjustMouseSensitivity from running.
Return nil to not override and allow subsequent hooks and WEAPON:AdjustMouseSensitivity to run.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...