Skip to reading
PCA Script Programming

stop_camera_orbit()

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

Stop Camera Orbit | Action ID: StopCameraOrbit

Stop the current extension-driven orbit.

No options in the standard shared schema.

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

Code example
stop_camera_orbit({})

In use. Use it when an inspection closes or a conversation ends. Decide which normal camera should take over and activate that camera explicitly when needed.

camera_shake()#

Camera Shake | Action ID: CameraShake

Shake the 3D camera for the chosen duration and direction, waiting for the shake routine.

Source table from stop_camera_orbit(), page 133
Option key / fieldMeaning and accepted inputDefault
Direction directionChoose: both, horizontal, vertical."both"
Duration (seconds) durationTime in seconds for this action. Read its timing note before assuming it waits. Range: 0.01 to 60.0.0.5
Power powerNumber; decimals allowed. Range: 0.0 to 10.0.0.25

Timing. Waits for the shake routine.

Code example
camera_shake({"direction": "both", "duration": 1, "power": 0.25})

In use. Use a small power, such as 0.1 to 0.25, for a machinery rumble. Its scale differs from the pixel-oriented Shake Screen action. Keep shakes short and provide a reduced-motion option for players who need it.

Page 133 of 357Permalink
Go to page