Advertisement
draugath

Turret: Toggle Mouselook

Feb 19th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. RegisterEvent(function(_, mode)
  2.     local mouselook = gkinterface.GetMouseLookMode()
  3.     if (mode == 'turret') then
  4.         if (not mouselook) then gkinterface.SetMouseLookMode(true) end
  5.     else
  6.         if (mouselook) then gkinterface.SetMouseLookMode(false) end
  7.     end
  8. end, "HUD_SHOW")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement