TOOL:FreezeMovement

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameFreezeMovement
SyntaxTOOL:FreezeMovement( )
DescriptionCalled every frame while the player can aim, so when no menu is open.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=TOOL:FreezeMovement]TOOL:FreezeMovement [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionBlocks player's aiming.
Used onNewerClient.png
Code
function TOOL:FreezeMovement()
	return true
end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox