setHeatHaze | Multi Theft Auto: Wiki Skip to content

setHeatHaze

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function changes the heat haze effect.

Syntax

bool setHeatHaze ( int intensity, [ int randomShift = 0, int speedMin = 12, int speedMax = 18, int scanSizeX = 75, int scanSizeY = 80, int renderSizeX = 80, int renderSizeY = 85, bool bShowInside = false ] )
Required Arguments
  • intensity: The intensity of the effect, from 0 to 255.
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • randomShift (default: 0): Sets a random jitter, from 0 to 255.
  • speedMin (default: 12): The slowest effect speed, from 0 to 1000.
  • speedMax (default: 18): The fastest effect speed, from 0 to 1000.
  • scanSizeX (default: 75): The X size in pixels of the chunk grabbed from the screen, from -1000 to 1000.
  • scanSizeY (default: 80): The Y size in pixels of the chunk grabbed from the screen, from -1000 to 1000.
  • renderSizeX (default: 80): The X size in pixels the chunk will be when rendered back to the screen, from 0 to 1000.
  • renderSizeY (default: 85): The Y size in pixels the chunk will be when rendered back to the screen, from 0 to 1000.
  • bShowInside (default: false): Set to true to enable the heat haze effect when inside a building.

Returns

  • bool: value

Returns true if the heat haze effect was set correctly, false if invalid values were passed.

Code Examples

shared

Example 1:This example turns the heat haze effect off:

setHeatHaze ( 0 )

See Also

World Functions