August 23, 20187 yr Hey, In a script I would like to zoom out the camera. I've tried using getMouse().scrollDown(); but this method only works when input is enabled, and there seems to be no way to enable input by code. I would like to know if this is possible without using the camera zoom widget. Thanks in advance! SOLUTION: the mouse was not focused on the game screen, to fix i just hovered the mouse over some random game object and then used getMouse().scrollDown(); Edited April 11, 20214 yr by MALS
August 23, 20187 yr Would be good to explore the api? https://osbot.org/api/org/osbot/rs07/api/Camera.html
August 23, 20187 yr 2 hours ago, Charlotte said: Would be good to explore the api? https://osbot.org/api/org/osbot/rs07/api/Camera.html Can't do it with the Camera class
August 23, 20187 yr 1 hour ago, FrostBug said: Can't do it with the Camera class It's part of the exploration of the api
August 24, 20187 yr Author 19 hours ago, TrekToop11 said: Could always try using the zoom virtual key You mean the slider in the settings menu?
June 6, 20223 yr Necrobumping this to ask a code snippet to solve this, can't find in API. Character can (rarely) at times get stuck around objects, going to try max pitch and disabling roofs to solve this, but would be useful to have a simple snippet for this. There's a class for this at but this class is unnecessarily complicated for my use case (setting zoom to minimum value) Edited June 6, 20223 yr by BigCahunaBurger
Create an account or sign in to comment