Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Interacting with GameObjects without moving the camera?


    Recommended Posts

    Is there a way to disable the client moving the camera around during the interact method of GameObject? Every time it interacts with the object it randomly moves the camera and I don't want that.


    I'm assuming this was added to the client in order to try and randomise mouse movements more but it's not needed if interacting with a stationary object 5 times in a row and it keeps swinging the screen randomly.

    Link to comment
    Share on other sites

    It should only rotate camera if it's off screen.

    But you can make your own interaction event


    GameObject go = getGameObjects().closest(stuff);
    EntityDestination ed = new EntityDestination(getClient(), go);
    InteractionEvent ie = new InteractionEvent(ed);
    ie.interact(action, InteractionSetting.EMPTY);


    or something like that, tbh been a while since I've looked at it.

    Link to comment
    Share on other sites

    ^What Nezz said.


    Here's a method I made in a script that manually handled camera movments. Feel free to use it if you'd like

    boolean customInteract(String action, Entity name) {
            EntityDestination ed = new EntityDestination(getClient(), name);
            InteractionEvent ie = new InteractionEvent(ed);
            if (ie.interact(action, InteractionSetting.MOVE))
                return true;
            return false;
    Example usage: customInteract("Chop", tree); //tree is a predefined tree object
    Link to comment
    Share on other sites


    This topic is now archived and is closed to further replies.

    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.