SetSkyGradient
From Multi Theft Auto: Wiki
This function changes the sky color to a two-color gradient.
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.
- topRed: The red value of the upper part of the sky, from 0 to 255.
- topGreen: The green value of the upper part of the sky, from 0 to 255.
- topBlue: The blue value of the upper part of the sky, from 0 to 255.
- bottomRed: The red value of the lower part of the sky, from 0 to 255.
- bottomGreen: The green value of the lower part of the sky, from 0 to 255.
- bottomBlue: The blue value of the lower part of the sky, from 0 to 255.
Returns
Returns true if sky color was set correctly, false if invalid values were passed.
Example
This example sets the sky to a hot pink gradient.
setSkyGradient( 200, 0, 100, 150, 0, 70 )
This example will set a blue realistic sky.
setSkyGradient( 60, 100, 196, 136, 170, 212 )
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