Skip to reading
PCA Script Programming

set_camera_priority()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Set Camera Priority | Action ID: SetCameraPriority

Change the priority used by the advanced-camera system.

Source table from set_camera_priority(), page 131
Option key / fieldMeaning and accepted inputDefault
Camera cameraIdChoose an authored camera ID.Blank
Camera Priority priorityCamera selection priority number.10

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
set_camera_priority({"cameraId": "wide", "priority": 10})

In use. Raise a conversation camera's priority while a scene is staged, then restore the previous priority. Priority is camera-selection policy; use Activate Camera when the sequence must explicitly take a particular view.

change_camera()#

Change Camera | Action ID: ChangeCamera

Switch to a selected authored camera through the direct camera-change route.

Source table from set_camera_priority(), page 131
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Camera View cameraIdChoose a camera in the selected scene.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
change_camera({"sceneId": "lab", "cameraId": "wide"})

In use. Choose Room View after an inspection ends. The scene field supplies picker context; it does not transport the player to another room. Use Activate Camera when you want explicit blend duration and wait control.

Page 131 of 357Permalink
Go to page