Garry's Mod Wiki

Revision Difference

Player:Lock#517548

<function name="Lock" parent="Player" type="classfunc"> <description> Stops a player from using any inputs, such as moving, turning, or attacking. Key binds are still called. Similar to <page>Player:Freeze</page> but the player takes no damage. Adds the [FL_FROZEN](/gmod/Enums/FL) and [FL_GODMODE](/gmod/Enums/FL) flags to the player. Adds the <page text="FL_FROZEN">Enums/FL</page> and <page text="FL_GODMODE">Enums/FL</page> flags to the player. <bug>Frozen bots will still be able to look around.</bug> </description> <realm>Server</realm> </function>