ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getCameraRenderInfo

Function

getCameraRenderInfo

ClientDrawing (dx)Trilogy Hub only

Returns the camera state: state, the number of frames in the texture (frames), measured shots per second (fps), whether the image arrives (ready), whether the attached element disappeared (attachLost) and an error (error).

Syntax

table getCameraRenderInfo(element camera)

Arguments

cameraelement
The camera.

Returns

A state table.

Example

local cam = createCameraRender(256, 256)
setTimer(function()
    local info = getCameraRenderInfo(cam)
    outputChatBox(info.ready and ("Kamera: " .. info.fps .. " kl/s") or "Kamera jeszcze nie gotowa")
end, 2000, 1)

See also