Turn On Fog In Script?

Hello i have a horror game that has a room where it is very foggy. In the end of the level you exit the building and go outside. Is there anyway to turn off fog in a script?
Something like this?

RenderSettings.Fog = false;

Thanks! (JavaScript)

I think you answered your own question… it’s RenderSettings.fog = true; or RenderSettings.fog = false;