Camera

object Camera

Camera A utility class with methods to retrieve camera values and control the mouse and keyboard to manipulate the viewport camera.

Functions

angle
Link copied to clipboard
fun angle(direction: Char): Boolean
fun angle(degrees: Int): Boolean

Changes the yaw (angle) of the camera.

angleTo
Link copied to clipboard
fun angleTo(degrees: Int): Int

Gets the angle change to the specified degrees.

angleToLocatable
Link copied to clipboard
fun angleToLocatable(mobile: Locatable?): Int
moveZoomSlider
Link copied to clipboard
fun moveZoomSlider(percentage: Double)

Moves the zoom slider in order to change the zoom level

pitch
Link copied to clipboard
fun pitch(): Int

Determines the current camera pitch.

fun pitch(up: Boolean): Boolean

Sets the camera pitch to one absolute, up or down.

fun pitch(percent: Int): Boolean

Sets the camera pitch the desired percentage.

turnTo
Link copied to clipboard
fun turnTo(l: Locatable?)

Turns to the specified org.powerbot.script.Locatable.

fun turnTo(yaw: Int, pitch: Int)

Turn the in-game camera to the specificed yaw and pitch.

fun turnTo(l: Locatable?, dev: Int)

Turns to the specified org.powerbot.script.Locatable with the provided deviation.

x
Link copied to clipboard
fun x(): Int

Returns the camera offset on the x-axis.

y
Link copied to clipboard
fun y(): Int

Returns the camera offset on the y-axis.

yaw
Link copied to clipboard
fun yaw(): Int

Determines the current camera yaw (angle of rotation).

z
Link copied to clipboard
fun z(): Int

Returns the camera offset on the z-axis.

Properties

center
Link copied to clipboard
val center: FloatArray
offset
Link copied to clipboard
val offset: FloatArray
zoom
Link copied to clipboard
val zoom: Int

Get the zoom of the client as a value betweem 0-100 (0 == zoomed out, 100 == zoomed in)

ZOOM_MAX
Link copied to clipboard
const val ZOOM_MAX: Double = 4.33
ZOOM_MIN
Link copied to clipboard
const val ZOOM_MIN: Double = 0.54