gui.SetMousePos
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Gui.SetMousePos]Gui.SetMousePos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Sets the local player's mouse to the middle of the screen. |
|---|---|
| Used on | |
| Code | gui.SetMousePos( ScrW()/2, ScrH()/2 ) |
| Output | N/A |