- Documentation
- Shared functions
- setFarClipDistance
Function
setFarClipDistance
Sets the world draw distance. For compatibility with existing scripts the value is stored and returned by getFarClipDistance, but Trilogy Hub does not change the in-game distance yet.
Syntax
bool setFarClipDistance(float distance)Arguments
distancefloat- Distance in metres.
Returns
true on success.
Example
setFarClipDistance(1500)
Notes
Client. In a client script - a value for this player only (resetFarClipDistance goes back to the server one).