self:set_fov
Client
Sets the field of view of the camera
Syntax
local status = self:set_fov(
fov
)Parameters
| Type | Name | Description |
|---|---|---|
float | fov | Field of view in degrees |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.camera.create()
entity:set_fov(75)