self:is_active

Client

Checks whether the camera is currently the active camera


Syntax

local result = self:is_active()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the camera is active, false otherwise

Examples

Check if a camera is active
local entity = core.camera.create()
entity:set_active()

core.engine.print("info", "Is active:", entity:is_active()) -- true

On this page