1. Rigs
  2. Interacting with Cameras

Rigs

Interacting with Cameras

Cameras are specialized Locators optimized to orient a player's screen, and can be used to create cutscenes, custom player perspectives, and more. This page explains how to interact with Cameras in your Rig Instance using commands.

Force the Player to Spectate a Camera

As Camera - animated_java:<export_namespace>/as_camera

Runs a command as and at a specific camera's entity.

Arguments

Name Type Description
name String The name of the camera to run the command as.
command String The command to run as the camera.
Example
Running a command as a camera
        execute as @e[tag=aj.<export_namespace>.root] run \
  function animated_java:<export_namespace>/as_camera \
    {name: '<camera_name>', command:'say Hello, World!'}