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

Function

getCameraRenderViewDistance

ClientDrawing (dx)Trilogy Hub only

Returns the camera view distance in metres (0 = like the game).

Syntax

float getCameraRenderViewDistance(element camera)

Arguments

cameraelement
The camera.

Returns

Distance.

Example

local cam = createCameraRender(256, 256)
outputChatBox(getCameraRenderViewDistance(cam)) -- 0

See also