- Documentation
- Server functions
- setHeatHaze
Function
setHeatHaze
Stores heat haze settings (the shimmering hot air over desert asphalt).
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])Arguments
intensityint- Strength 0-255.
randomShiftint, optional = 0- Random image shift.
speedMinint, optional = 12- Minimum ripple speed.
speedMaxint, optional = 18- Maximum ripple speed.
scanSizeXint, optional = 75- Width of the area sampled from the screen.
scanSizeYint, optional = 80- Height of the sampled area.
renderSizeXint, optional = 80- Width of the drawn area.
renderSizeYint, optional = 85- Height of the drawn area.
bShowInsidebool, optional = false- Whether to show the effect indoors.
Returns
true on success.
Example
setHeatHaze(80, 0, 12, 18, 75, 80, 80, 85, false)
Notes
State for scripts. The game does not change the effect based on it yet.