Definition
bool IsGeneralWaterReflectionEnabled()
Description
This function determines whether the general water reflection is enabled or not.
Return Value
If general water reflection is enabled, it returns true, otherwise it returns false.
Example
reflection = false message = "" function Init() reflection = IsGeneralWaterReflectionEnabled() if reflection then message = string.format("\nGeneral water reflection is ON") else message = string.format("\nGeneral water reflection is OFF") end PrintConsole(message) end function Update() end
First, we determines whether the general water reflection is enabled or not. Then we display general water reflection status in the console using the PrintConsole function.
IsGeneralWaterReflectionEnabled