gui.SetMousePos

From GMod Wiki

Jump to: navigation, search
Function
Syntax gui.SetMousePos( Number X, Number Y )
Where is this used?
Description:
Set's the cursor's position.
Returns: Number
Part of Library: gui
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gui.SetMousePos]Gui.SetMousePos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the local player's mouse to the middle of the screen.
Used onNewerClient.png
Code
 
gui.SetMousePos( ScrW()/2, ScrH()/2 )
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox