Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to lock camera ?

Featured Replies

Hello guys, how can i lock the camera rotation in onStart ?

I using minimap to walk and sometimes when camera automatic rotate, the position to walk in minimap hide.

  • Author
14 minutes ago, Juggles said:

Event event = new Event();

event.setCamera(false)

execute(event);

Got cannot resolve the symbol 'setCamera' :(

  • Author

Nah, still dont know how to lock this shit... but i wrote this in one onLoop method and allways before player click to walk this code set the camera to the right position.

getCamera().movePitch();
getCamera().moveYaw();

Problem solved.:sanic:

Edited by RuneMaker4657

On 10/6/2017 at 11:50 AM, RuneMaker4657 said:

Nah, still dont know how to lock this shit... but i wrote this in one onLoop method and allways before player click to walk this code set the camera to the right position.


getCamera().movePitch();
getCamera().moveYaw();

Problem solved.:sanic:

Won't setting the camera be very very suspicious if this is done every time the client updates?

  • 1 year later...

What is the current method for locking camera in onStart()? I have been working on my first script and have the logic down but the camera movement causes missclicks once in awhile. although playing around with the API i haven't gotten the camera to lock on start. 

 

Edit: Was able to lock it by creating custom InteractionEvents for interactions.

 

Edited by acec
Found solution

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.