SetGrainMultiplier: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|21894|This function is used to adjust an intensity of the grain effect in different situations. It separately modulates an intensity of effect for infrared goggles, night vision goggles, rain and screen overlay.}} ==Syntax== <syntaxhighlight lang="lua"> bool setGrainMultiplier ( string modifierName, float multiplier ) </syntaxhighlight> ===Required Arguments=== *'''modifierName :''' The modifier name to u...") |
No edit summary |
||
Line 14: | Line 14: | ||
**'''night:''' The intersity of a grain effect for night vision goggles. | **'''night:''' The intersity of a grain effect for night vision goggles. | ||
**'''rain :''' The intersity of a grain effect for rain. | **'''rain :''' The intersity of a grain effect for rain. | ||
**'''overlay :''' The intersity of a grain effect for a screen overlay(see setGrainLevel). | **'''overlay :''' The intersity of a grain effect for a screen overlay(see [[setGrainLevel]]). | ||
**'''all :''' Can be used to set all the modifiers above at once. | **'''all :''' Can be used to set all the modifiers above at once. | ||
*'''multiplier :''' The multiplier (0-1). | *'''multiplier :''' The multiplier (0-1). |
Revision as of 15:51, 25 July 2023
Syntax
bool setGrainMultiplier ( string modifierName, float multiplier )
Required Arguments
- modifierName : The modifier name to use which can be one of:
- master: The overall intersity that modulates the other ones.
- infrared: The intersity of a grain effect for infrared goggles.
- night: The intersity of a grain effect for night vision goggles.
- rain : The intersity of a grain effect for rain.
- overlay : The intersity of a grain effect for a screen overlay(see setGrainLevel).
- all : Can be used to set all the modifiers above at once.
- multiplier : The multiplier (0-1).
Returns
Returns true if the grain multiplier was set, false otherwise.
Example
This example disables a grain effect for the rain.
addCommandHandler( "disable_rain_grain", function() setGrainMultiplier( "rain", 0 ) end )
See Also
- createSWATRope
- getBirdsEnabled
- getCoronaReflectionsEnabled
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getGroundPosition
- getInteriorFurnitureEnabled
- getNearClipDistance
- getPedsLODDistance
- getRoofPosition
- getScreenFromWorldPosition
- getVehiclesLODDistance
- getWorldFromScreenPosition
- isAmbientSoundEnabled
- isLineOfSightClear
- isWorldSoundEnabled
- processLineOfSight
- resetAmbientSounds
- resetBlurLevel
- resetColorFilter
- resetCoronaReflectionsEnabled
- resetNearClipDistance
- resetPedsLODDistance
- resetVehiclesLODDistance
- resetWorldSounds
- setAmbientSoundEnabled
- setBirdsEnabled
- setColorFilter
- setCoronaReflectionsEnabled
- setInteriorFurnitureEnabled
- setInteriorSoundsEnabled
- setNearClipDistance
- setPedsLODDistance
- setVehiclesLODDistance
- setWorldSoundEnabled
- testLineAgainstWater
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel