core.camera.set_active
Client
Sets the active camera
Syntax
local status = core.camera.set_active(
camera = nil
)Parameters
| Type | Name | Description |
|---|---|---|
camera | camera | Camera instance to set as active Omitting this argument will deactivate the currently active camera |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.camera.create()
core.camera.set_active(entity)core.camera.set_active()