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

Function

updateCameraRender

ClientDrawing (dx)Trilogy Hub only

Requests one camera shot in the next frame (the image is in the texture 1-2 frames later).

Syntax

bool updateCameraRender(element camera)

Arguments

cameraelement
The camera.

Returns

true on success.

Example

local cam = createCameraRender(512, 288, 0)
attachCameraRender(cam, localPlayer, 0, -4, 1.5)
bindKey("p", "down", function() updateCameraRender(cam) end)

See also