Files
2026-06-11 09:16:29 +02:00

38 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CCTVCamera
### Type
pre-defined
### 3D
The CCTV Camera is a small, dark gray box.
Origin is at the Center.
Spawnpoint should be {0,3,0} and its target set so it already points slightly down.
### Custom Args:
| Key | Type | Implemented | Description |
|---|---|---|---|
| target | string `"x,y,z"` | ⚠️ (Unity only reads rotation) | World-space look-at point. Could be a moveable object in the future.|
| fov | float (degrees) | ✔️ | Camera field of view in degrees. Derived in Creator as `zoom * 60`. |
| grabable | `"true"` / `"false"` | ⚠️ (Unity missing) | Whether the item can be grabbed in-experience (common to all types) |
### Special Notes:
The `target` arg is documented in the database but the `CCTVCameraBehaviour` switch statement does not handle it — the camera's look direction is controlled by the object's `rotation` in the scene.
In the Creator, `fov = zoom * 60` where zoom is 110.
### Example:
```json
{
"position": { "x": 0.0, "y": 3.0, "z": 5.0 },
"rotation": { "x": 30.0, "y": 0.0, "z": 0.0 },
"scale": { "x": 1.0, "y": 1.0, "z": 1.0 },
"type": "pre-defined",
"resourcename": "CCTVCamera",
"item-custom-args": [
{ "argument": "target", "value": "0,0,6" },
{ "argument": "fov", "value": "140" }
],
"item-custom-args-adv": null
}
```