SetFarClipDistance: Difference between revisions
Jump to navigation
Jump to search
m (Note to template note_box) |
m (→Example) |
||
Line 15: | Line 15: | ||
Returns ''true'' if the distance was set correctly, ''false'' if invalid arguments were passed. | Returns ''true'' if the distance was set correctly, ''false'' if invalid arguments were passed. | ||
==Example== | ==Example== | ||
<section name="Server" class="server" show="true"> | |||
The function which is adjusting visibility range of the game world. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
-- | function onResourceStart(resource) | ||
setFarClipDistance(3000) -- we adjust visibility range on 3000 metres | |||
end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStart) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==See Also== | ==See Also== |
Revision as of 14:33, 31 January 2012
This template is no longer in use as it results in poor readability.
This function is used to set the distance of render.
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 [-]
ServerThe function which is adjusting visibility range of the game world.
function onResourceStart(resource) setFarClipDistance(3000) -- we adjust visibility range on 3000 metres end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStart)
See Also
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel