SetSky

Category: Sky
Since engine version: 8.0 OC

Description

Changes the current sky graphics.

Syntax

bool SetSky(string sky);

Parameter

sky:
Name of the new sky from Graphics.ocg or the scenario, without filename extension.

Remark

Changing the sky with this function will not persist in savegames. Consider using the Sky entry in Scenario.txt instead, possibly combined with scenario sections.

Example

SetSky("Default");
Changes to the default sky.
See also: Scenario.txt Documentation, SetSkyAdjust
Luchs, 2016-10