- Documentation
- Shared functions
- resetColorFilter
Function
resetColorFilter
Removes the colour filter. On the server for all players; on the client it removes the local filter, and the server filter (if any) stays.
Syntax
bool resetColorFilter()Returns
true on success.
Example
resetColorFilter()
See also
setColorFilterApplies a colour filter to the game image: two RGBA layers multiply the colours of the world, each to the degree of its alpha (alpha 0 = the layer changes nothing, 255 = the full layer colour). On the server every player gets the filter, on the client only this player (it takes priority over the server filter). Script texts and windows are not tinted.getColorFilterReturns the colour filter set withsetColorFilter. On the client it returns the local filter, or the server filter without it.