Jump to content

Zooming out the camera


Recommended Posts

Posted (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 by MALS
  • Sad 1
  • 1 year later...
Posted (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 by BigCahunaBurger

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...