Jump to content

zwaffel

Lifetime Sponsor
  • Posts

    232
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by zwaffel

  1. copied from the api:

    Quote

    Gets the definition for an item based on it's id. Note: This method might return null because the item hasn't been loaded by the client yet!

     

    To make sure your camera is at the max distance i would open the settings and use configs to change the camera to its max position.

    You can get the values by printing the getters of z, x and y.

  2. camera.movePitch() and camera.moveYaw()  both return boolean so you can use them in an if statement.

    if you want to turn to a target or position you can  use  toEntity or toPosition .

    More info here. https://osbot.org/api/org/osbot/rs07/api/Camera.html

     

    You're using a random number for your pitch and your target yaw is just your old value +1. If you want to test a specific location put a specific number as your target.

     

×
×
  • Create New...