CamTargetV1

class CamTargetV1(val type: CamTargetV1.CamTargetType) : OutgoingGameMessage

Deprecated

Deprecated in revision 223.

Replace with

import net.rsprot.protocol.game.outgoing.camera.CamTargetV2
CamTargetV2

Camera target packet is used to attach to camera on another entity in the scene. If the entity by the specified index cannot be found in the client, the camera will always be focused back on the local player. Furthermore, depth buffering (z-buffer) will be enabled if the WorldEntityTarget type is used. Other types will use the traditional priority system.

Constructors

Link copied to clipboard
constructor(type: CamTargetV1.CamTargetType)

Types

Link copied to clipboard
sealed interface CamTargetType

A sealed interface for various camera target types.

Link copied to clipboard

Camera target type for NPCs. This will focus the camera on a specific NPC. If the NPC by the specified index cannot be found, the camera will be set back on local player.

Link copied to clipboard

Camera target type for players. This will focus the camera on a specific player. If the player by the specified index cannot be found, the camera will be set back on local player.

Link copied to clipboard

Camera target type for world entities. This will focus the camera on a specific world entity. If the world entity by the specified index cannot be found, the camera will be set back on local player. Additionally, depth buffering (z-buffer) will be enabled when this type of camera target is used.

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard

the camera target type to focus on.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String