• Toggle the mouse speed
    5 replies, posted
Im making a sniper swep but i need to make the mouse speed lower when i use ironsights how do i do this(i just need the line to turn it down and back to orginal speed)
[url]http://wiki.garrysmod.com/?title=Gamemode.AdjustMouseSensitivity[/url]
[url]http://wiki.garrysmod.com/?title=Gamemode.AdjustMouseSensitivity[/url] [editline]03:28PM[/editline] holy ninja'd. guess I shouldn't have left the window open
Haha wow I just took a wild guess at something I remembered using a long time ago lol
thanks i tried after this post with concomand and it block it D= if self.UseScope then local bScope = self.Weapon:GetNetworkedBool("Scope") if bScope ~= self.bLastScope then -- Are we turning the scope off/on? self.bLastScope = bScope self.fScopeTime = CurTime() elseif bScope then local fScopeZoom = self.Weapon:GetNetworkedFloat("ScopeZoom") if fScopeZoom ~= self.fLastScopeZoom then -- Are we changing the scope zoom level? self.fLastScopeZoom = fScopeZoom self.fScopeTime = CurTime() hook.Add("AdjustMouseSensitivity", "0.5", function(default_sensitivity) return 0.25 end) end [editline]08:40PM[/editline] that would work right?
Use Lua tags.
Sorry, you need to Log In to post a reply to this thread.