CamTargetV2

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

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: CamTargetV2.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
class WorldEntityTarget(val index: Int, val cameraLockedPlayerIndex: Int) : CamTargetV2.CamTargetType

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. If a player index is provided, the client will try to look up that player in the root player's current world entity and lock the camera onto them. 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