getHeatHaze | Multi Theft Auto: Wiki Skip to content

getHeatHaze

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 will return the current heat haze effect settings.

Syntax

int,​ int,​ int,​ int,​ int,​ int,​ int,​ int,​ bool getHeatHaze ( )

Returns

  • int: value1
  • int: value2
  • int: value3
  • int: value4
  • int: value5
  • int: value6
  • int: value7
  • int: value8
  • bool: value9

Returns 9 values, which are the same used as arguments in SetHeatHaze :

Code Examples

shared

This example outputs current heat haze settings to the chat when player uses command 'get_haze'.

addCommandHandler( 'get_haze',
function( )
local 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 )
)
)
end
)

See Also

World Functions