SWEP.AdjustMouseSensitivity
From GMod Wiki
Revision as of 00:41, 24 October 2009 by Crazy Quebecer  (Talk | contribs)
				
			| Event Hook | |
| Hook Name | AdjustMouseSensitivity | 
| Syntax | SWEP:AdjustMouseSensitivity( ) | 
| Description | This event modifies the sensitivity of the mouse by returning a multiplier that modifies how much the mouse was moved that frame. | 
| Returns | float or nil | 
| Lua State |   | 
| BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.AdjustMouseSensitivity]SWEP.AdjustMouseSensitivity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
Examples
| Description | N/A | ||
|---|---|---|---|
| Used on |   | ||
| Code | 
 | ||
| Output | N/A | 
Additional Notes
- As an example, if this function were to return 5 and you moved the mouse to the left 5 pixels, it would be as if you moved the mouse 25 pixels to the left (because 5*5 = 25)
- If you return zero, the player won't be able to look around anymore.
- Returning nil is the same thing as returning 1

 
			
			