GetVehiclesLODDistance: Difference between revisions
Jump to navigation
Jump to search
(→See Also: +engineGet/SetModelLODDistance) |
No edit summary |
||
Line 12: | Line 12: | ||
* '''float:''' general distance used for most vehicles | * '''float:''' general distance used for most vehicles | ||
* '''float:''' distance used for trains and planes | * '''float:''' distance used for trains and planes | ||
==Example== | |||
This example shows the LOD distance of vehicles, helicopters and trains when the client resource started | |||
<syntaxhighlight lang="lua"> | |||
addEventHandler("onClientResourceStart",resourceRoot,function() | |||
local vehicle,planes_trains = getVehiclesLODDistance() | |||
outputChatBox("LOD Distance of Vehicles: "..math.floor(vehicle),0,255,0) | |||
outputChatBox("LOD Distance of Planes and Trains: "..math.floor(planes_trains),0,255,0) | |||
end) | |||
</syntaxhighlight> | |||
==See Also== | ==See Also== |
Revision as of 11:30, 16 July 2017
Script Example Missing Function GetVehiclesLODDistance needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
Returns the distance of vehicles LOD.
Syntax
float, float getVehiclesLODDistance ( )
Returns
- float: general distance used for most vehicles
- float: distance used for trains and planes
Example
This example shows the LOD distance of vehicles, helicopters and trains when the client resource started
addEventHandler("onClientResourceStart",resourceRoot,function() local vehicle,planes_trains = getVehiclesLODDistance() outputChatBox("LOD Distance of Vehicles: "..math.floor(vehicle),0,255,0) outputChatBox("LOD Distance of Planes and Trains: "..math.floor(planes_trains),0,255,0) end)
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