Gamemode.CreateMove
From GMod Wiki
Event Hook | |
Hook Name | CreateMove |
Syntax | GM:CreateMove( CUserCmd cmd ) |
Description | Allows you to change the players movements before they're sent to the server. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.CreateMove]Gamemode.CreateMove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- This is the best place to change the players aim-angle. Note that this doesn't actually change the view position.
- Learn about bitwise operators if you want to alter player input!