Skip to reading
PCA Script Programming

set_room_camera_bounds()

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

Change Room Camera Bounds | Action ID: SetRoomCameraBounds

Set whether camera bounds are enabled and edit the room's X/Z limits.

Source table from set_room_camera_bounds(), page 146
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Bounds Enabled enabledExplicit on/off state for the feature or response.true
Left / Minimum X minXNumber; decimals allowed.0
Right / Maximum X maxXNumber; decimals allowed.0
Top / Minimum Z minZNumber; decimals allowed.0
Bottom / Maximum Z maxZNumber; decimals allowed.0

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

Code example
set_room_camera_bounds({"sceneId": "lab", "enabled": true, "minX": 0})

In use. Constrain a 3D tracking camera to the playable room. These are camera limits, not the player's navigation bounds. Expanding them alone does not make an oversized backdrop walkable.

Page 146 of 357Permalink
Go to page