- Documentation
- Server functions
- setFogDistance
Function
setFogDistance
Sets the fog distance (-1000 to 1000). The value is stored for compatibility with existing scripts (getFogDistance), but Trilogy Hub does not change the in-game fog yet.
Syntax
bool setFogDistance(float distance)Arguments
distancefloat- The distance.
Returns
true on success.
Example
setFogDistance(50)