> For the complete documentation index, see [llms.txt](https://sneakyevil.gitbook.io/sleeping-dogs-de-script-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sneakyevil.gitbook.io/sleeping-dogs-de-script-api/game-classes/camera.md).

# Camera

General game-camera component.

### Properties:

<table><thead><tr><th>Name</th><th width="200.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>FOV</td><td>float</td><td>Field of view (Offset)</td></tr><tr><td>OverrideFOV</td><td>float</td><td>Field of view (Override)</td></tr><tr><td>EnableOverrideFOV</td><td>boolean</td><td>Toggles Override Field of view</td></tr></tbody></table>

### Static Functions:

#### .GetType

`Camera.GetType()`: string

| Name              | Description                            |
| ----------------- | -------------------------------------- |
| AnimatedCamera    | Used only by SkookumScript missions    |
| BaseCamera        | Base component of each camera type     |
| ChaseCamera       | Used while driving vehicle             |
| DebugCamera       | Unknown                                |
| FollowCamera      | Used while on foot                     |
| GameCamera        | Base component for Chase/Follow/Script |
| ProgressionCamera | Unknown                                |
| ScriptCamera      | Used only by SkookumScript missions    |
| TurfCamera        | Unknown                                |

#### .IsScriptCameraOn

`Camera.IsScriptCameraOn()`: boolean

Returns true/false depending if script camera is currently enabled.

#### .ToggleScriptCamera

`Camera.ToggleScriptCamera(toggle: boolean)`

| Argument | Type    | Description          |
| -------- | ------- | -------------------- |
| toggle   | boolean | Toggles scriptcamera |

Toggles script camera depending of value.

#### .SetScriptCameraEyeLook

`Camera.SetScriptCameraEyeLook(eye: Vector3, look: Vector3, duration: float)`

<table><thead><tr><th width="236">Argument</th><th width="148.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>eye</td><td>Vector3</td><td>World Coordinate of Camera position</td></tr><tr><td>look</td><td>Vector3</td><td>World Coordinate of Camera look</td></tr><tr><td>duration</td><td>float</td><td>Duration it takes to the new eye &#x26; look</td></tr></tbody></table>

Updates script camera position & look.

#### .SetScriptCameraDOF

`Camera.SetScriptCameraDOF(focaldistance: float, focusrange: float, nearblendrange: float, nearblurradius: float, farblendrange: float, farblendradius: float)`

#### .ResetScriptCameraDOF

`Camera.ResetScriptCameraDOF()`
