Cam Target V1
Deprecated
Deprecated in revision 223.
Replace with
import net.rsprot.protocol.game.outgoing.camera.CamTargetV2
CamTargetV2Camera 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.
Types
A sealed interface for various camera target types.
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.
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.
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.