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

Function

detachCameraRender

ClientDrawing (dx)Trilogy Hub only

Detaches the camera from an element; it stays at the spot of the last shot.

Syntax

bool detachCameraRender(element camera)

Arguments

cameraelement
The camera.

Returns

true if it was attached.

Example

local cam = createCameraRender(256, 256)
attachCameraRender(cam, localPlayer, 0, -3, 1)
setTimer(detachCameraRender, 5000, 1, cam)

See also