self:is_active
Client
Checks whether the camera is currently active
Syntax
local result = self:is_active()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the camera is active, false otherwise |
Examples
local entity = core.camera.create()
entity:set_active()
core.engine.print("info", entity:is_active()) -- true