SetFarClipDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
This function is used to set the distance of render.
This function is used to set the distance of render. Areas beyond the specified distance will not be rendered.


==Syntax==
==Syntax==

Revision as of 13:18, 3 August 2014

This template is no longer in use as it results in poor readability.

This function is used to set the distance of render. Areas beyond the specified distance will not be rendered.

Syntax

bool setFarClipDistance ( float distance )

Required Arguments

  • distance: A float specifying the distance of render.

Returns

Returns true if the distance was set correctly, false if invalid arguments were passed.

Example

Click to collapse [-]
Server

The function which is adjusting visibility range of the game world.

addEventHandler("onResourceStart",resourceRoot,function()
	setFarClipDistance(3000) -- we adjust visibility range on 3000 metres
end)
Click to expand [+]
Client

See Also