SetHeatHaze
From Multi Theft Auto: Wiki
This function changes the heat haze effect.
Syntax
Optional Arguments
NOTE: When using optional arguments, you must supply all arguments before the one you wish to use. For more information on optional arguments, see Optional Arguments.
- 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.
Returns
Returns true if the heat haze effect was set correctly, false if invalid values were passed.
Example
Example 1: This example turns the heat haze effect off:
setHeatHaze ( 0 )
Example 2: This example will have an interesting effect:
setHeatHaze ( 50, 20, 0, 500, 200, 100, 50, 20, true )
See Also
- setHeatHaze
- setMinuteDuration
- setSkyGradient
- setTime
- setInteriorSoundsEnabled
- getInteriorSoundsEnabled
- setRainLevel
- getRainLevel
- resetRainLevel
- setSunSize
- getSunSize
- resetSunSize
- setSunColor
- getSunColor
- resetSunColor
- setWindVelocity
- getWindVelocity
- resetWindVelocity
- setFarClipDistance
- getFarClipDistance
- resetFarClipDistance
- setFogDistance
- getFogDistance
- resetFogDistance
- removeWorldModel
- restoreWorldModel
- restoreAllWorldModels
- setOcclusionsEnabled
- getOcclusionsEnabled