Gamemode.AdjustMouseSensitivity

From GMod Wiki

Revision as of 22:32, 1 May 2010 by Kangaroux (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameAdjustMouseSensitivity
SyntaxGM:AdjustMouseSensitivity( Number Default )
DescriptionAllows you to adjust the mouse sensitivity.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.AdjustMouseSensitivity]Gamemode.AdjustMouseSensitivity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionMakes the mouse sensitivity change to quarter the normal for all players.
Used onNewerClient.png
Code
hook.Add("AdjustMouseSensitivity", "MyAdjustHook", function(default_sensitivity)
    return 0.25
end)
 
Output


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox