- Documentation
- Server functions
- setGrainLevel
Function
setGrainLevel
Adds film-like grain to the game image for all players (0 = none, 255 = strongest). The strength is multiplied by setGrainMultiplier.
Syntax
bool setGrainLevel(int level)Arguments
levelint- Strength 0-255.
Returns
true on success.
Example
setGrainLevel(40)
Notes
Depends on the player's graphics. At the lowest effects (post-process) quality the game does not draw grain.