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

Function

setCameraRenderViewDistance

ClientDrawing (dx)Trilogy Hub only

Sets the camera view distance in metres (0 = like the game). A shorter distance means a cheaper render, e.g. for a mirror.

Syntax

bool setCameraRenderViewDistance(element camera, float metres)

Arguments

cameraelement
The camera.
metresfloat
Distance.

Returns

true on success.

Example

local mirror = createCameraRender(400, 120)
setCameraRenderViewDistance(mirror, 150)

See also