MALS Posted August 23, 2018 Share Posted August 23, 2018 (edited) 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, 2021 by MALS 1 Quote Link to comment Share on other sites More sharing options...
Charlotte Posted August 23, 2018 Share Posted August 23, 2018 Would be good to explore the api? https://osbot.org/api/org/osbot/rs07/api/Camera.html 1 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted August 23, 2018 Share Posted August 23, 2018 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 4 Quote Link to comment Share on other sites More sharing options...
Charlotte Posted August 23, 2018 Share Posted August 23, 2018 1 hour ago, FrostBug said: Can't do it with the Camera class It's part of the exploration of the api Quote Link to comment Share on other sites More sharing options...
TrekToop11 Posted August 23, 2018 Share Posted August 23, 2018 Could always try using the zoom virtual key Quote Link to comment Share on other sites More sharing options...
MALS Posted August 24, 2018 Author Share Posted August 24, 2018 19 hours ago, TrekToop11 said: Could always try using the zoom virtual key You mean the slider in the settings menu? Quote Link to comment Share on other sites More sharing options...
BigCahunaBurger Posted June 6, 2022 Share Posted June 6, 2022 (edited) 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, 2022 by BigCahunaBurger Quote Link to comment Share on other sites More sharing options...