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
  • Camera moving on its own?


    GaryLazereyes

    Recommended Posts

    Have been working on my first script as of late...I'm not making any calls to manually move the camera, but while I'm doing things like looking for and attacking NPC's, the camera seems to be automatically rotating to point at the NPC.  I don't want this!  How can I prevent any camera movement?

     

    Link to comment
    Share on other sites

    You can create your own interaction event using your own interaction settings.

    EntityDestination ed = new EntityDestination(getClient(), yourEntity);
    InteractionEvent ie = new InteractionEvent(ed);

    ie.interact("Attack", InteractionSetting.MOVE);

     

    Note that atm the MOVE setting doesn't do anything, but you can't give it an empty list or it'll use the default interact which rotates the camera.

     

    This will make the interaction not rotate the camera, though.

    Link to comment
    Share on other sites

    Archived

    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.