GreenHell Modding
Search…
Welcome to the GreenHell Modding docs!
TUTORIALS
How to install GreenHellModLoader
How to install a mod
Mods in multiplayer
MODDING TUTORIALS
How to create a mod project
How to create an AssetBundle
CLIENT - CODE EXAMPLES
Reading private variables
Modifying private variables
Accessing the player instance
Giving items to a player
Modifying the inventory max weight
Unlocking everything in the Notepad
Disabling player movement
Toggling the mouse/cursor
Printing to the console
WEBSITE
Slugs
Powered By
GitBook
Disabling player movement
In order to block/disable the player movement we can use 2 methods from the
Player
class.
// Blocking the movement and rotation
Player
.
Get
().
BlockMoves
();
Player
.
Get
().
BlockRotation
();
// Unblocking the movement and rotation
Player
.
Get
().
UnblockMoves
();
Player
.
Get
().
UnblockRotation
();
CLIENT - CODE EXAMPLES - Previous
Unlocking everything in the Notepad
Next - CLIENT - CODE EXAMPLES
Toggling the mouse/cursor
Last modified
2yr ago
Copy link