AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
When was shiftlock was made in roblox11/15/2023 Local MouseLockController = cameras.activeMouseLockController Local CameraController = cameras.activeCameraController Local BoundKeys = :WaitForChild("BoundKeys") Local cameras = require(PlayerModule):GetCameras() local PlayerModule = :WaitForChild("PlayerModule") SetMouseLockOffset sets the camera offset from the center shift lock uses 1.75, 0, 0. The mouse gets center-locked, moving it moves the camera, and the character faces in the direction the camera faces. The function SetIsMouseLocked in the CameraController module behaves just like shift lock. Setting the value to an empty string disables the toggle. I’ve found a loophole, though: a StringValue named BoundKeys is available to change which keys will activate shift lock if it is enabled. Shift lock has properties for developers to disable it in their games, but those properties are read-only in runtime, so you can’t use them to disable shift lock temporarily to stop it from affecting the camera. I’ve read a bit of the new camera and character control modules source code and came up with an implementation for center-locking the mouse while controlling the camera that also supports shift lock.
0 Comments
Read More
Leave a Reply. |