SiegeCam
A component script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2SiegeCam — the siege engineer's eye. Rides the scene's PlayerPrototype CameraRig (each player owns their own, so this never fights another peer's view). It orbits a world point the game hands it, zooms between "arm's length at the winch" and "watch the far wall come down", and can hand its aim over to a shot in flight so the player follows the arc to the impact. The game component owns WHAT to look at and writes `target*` / `distanceBias` / `shake`; this component owns HOW the camera gets there.
seed( ) → void
tick(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
awake( ) → void
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
editorUpdate(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
snap( ) → void
Snap the smoothed pose straight onto the current target, with no glide.
examples
camComp:snap()
kick(amount: number) → void
Add an impact kick, in metres of camera displacement.
| arg | type | description |
|---|---|---|
| amount | number | How hard to kick; accumulates with any kick still decaying. |
examples
camComp:kick(0.5)
aimAt(x: number, y: number, z: number) → void
Point the camera at a world position.
| arg | type | description |
|---|---|---|
| x | number | World X. |
| y | number | World Y. |
| z | number | World Z. |
examples
camComp:aimAt(0, 6, 0)
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
This asset
●2problemsagent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.