Skip to reading
PCA Script Programming

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

Camera Orbit | Action ID: CameraOrbit

Start an orbit around an entity with distance, height, direction, speed and repetitions.

Source table from camera_orbit(), page 132
Option key / fieldMeaning and accepted inputDefault
Target Object entityIdChoose a scene entity ID.Blank
Degrees Per Second speedOrbit angular speed.45
Distance distanceNumber; decimals allowed.5
Orbit Mode modeChoose: 360, 180, 180_back."360"
Repeat Count repetitionsWhole number.1
Clockwise clockwiseOn/off.false
Height heightNumber; decimals allowed.2

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

Code example
camera_orbit({"entityId": "archive_door", "speed": 45, "distance": 5})

In use. Orbit the clock for a reveal, then stop it before returning to normal play. The orbit continues as a behavior after it starts; do not assume that placing it before another action makes the list wait for every revolution.

Page 132 of 357Permalink
Go to page