GetHeatHaze: Difference between revisions
Jump to navigation
Jump to search
(Created a template for heat haze values and added it to 'returns' section) |
No edit summary |
||
Line 14: | Line 14: | ||
{{HeatHazeValues}} | {{HeatHazeValues}} | ||
<section name="Client" class="client" show="true"> | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addCommandHandler( 'haze', | |||
function( ) | |||
local tNew = { } | |||
table.insert( tNew,{ getHeatHaze ( ) } ) | |||
outputChatBox( | |||
string.format( | |||
'intensity = %s ;randomShift = %s ;speedMin = %s ;speedMax = %s ;scanSizeX = %s ;scanSizeY = %s ;renderSizeX = %s \ | |||
;renderSizeY = %s ;bShowInside = %s ;', unpack( tNew[1] ) | |||
) | |||
) | |||
end | |||
) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==See Also== | ==See Also== |
Revision as of 20:05, 7 March 2012
This function will return the current heat haze effect settings.
Note: The server can only return the heat haze settings if it has actually been set by script.
Syntax
int, int, int, int, int, int, int, int, bool getHeatHaze ( )
Returns
Returns 9 values, which are the same used as arguments in SetHeatHaze:
- intensity: The intensity of the effect, from 0 to 255.
- randomShift: Sets a random jitter, from 0 to 255.
- speedMin: The slowest effect speed, from 0 to 1000.
- speedMax: The fastest effect speed, from 0 to 1000.
- scanSizeX: The X size in pixels of the chunk grabbed from the screen, from -1000 to 1000.
- scanSizeY: The Y size in pixels of the chunk grabbed from the screen, from -1000 to 1000.
- renderSizeX: The X size in pixels the chunk will be when rendered back to the screen, from 0 to 1000.
- renderSizeY: The Y size in pixels the chunk will be when rendered back to the screen, from 0 to 1000.
- bShowInside: Set to true to enable the heat haze effect when inside a building.
Click to collapse [-]
ClientExample
addCommandHandler( 'haze', function( ) local tNew = { } table.insert( tNew,{ getHeatHaze ( ) } ) outputChatBox( string.format( 'intensity = %s ;randomShift = %s ;speedMin = %s ;speedMax = %s ;scanSizeX = %s ;scanSizeY = %s ;renderSizeX = %s \ ;renderSizeY = %s ;bShowInside = %s ;', unpack( tNew[1] ) ) ) 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