> For the complete documentation index, see [llms.txt](https://docs.fullscreen.no/info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fullscreen.no/info/game-creator-2-assets/cozy-stylized-weather-integration/guides-and-demo-scene/weather.md).

# Weather

## Run instructions On Weather change

{% hint style="danger" %}
The *On Weather* event in COZY 3.5.5 is currently not functioning as expected unless you are using the Set Weather Instruction. The bug has been reported to COZY's developer.
{% endhint %}

{% hint style="success" %}
This trigger is event-based and carefully crafted for optimal performance, making it more efficient and better for performance compared to frequent checks every frame.
{% endhint %}

<figure><img src="https://756218607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv2D32cRkVCHsF9VcmKPA%2Fuploads%2FSwnYRtZjbNhOoOTlv6tE%2FScreenshot%202025-01-24%20192303.png?alt=media&amp;token=18f7889d-11a9-4aba-b2cf-d882c8328689" alt=""><figcaption><p><strong>On the left side</strong> using the '<a href="/info/game-creator-2-assets/cozy-stylized-weather-integration/guides-and-demo-scene/weather.md"><mark style="color:yellow;">On Any Weather</mark></a>' Trigger with a Condition. Bob will go inside the house if the current weather name contains snow, and he will go outside if it dosn't. <strong>On the right side</strong> using '<a href="/info/game-creator-2-assets/cozy-stylized-weather-integration/triggers/on-specific-weather.md"><mark style="color:yellow;">On Specific Weather</mark></a>' that allows you to specify what weather you want the trigger to trigger on.</p></figcaption></figure>

## Display the weather on UI

<figure><img src="https://756218607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv2D32cRkVCHsF9VcmKPA%2Fuploads%2FjUkdWQPEVqz0UeHN4hEq%2FScreenshot%202025-01-24%20160606.png?alt=media&amp;token=67edc9dc-3c4a-4960-9915-1a0d4e4fff9e" alt=""><figcaption><p>Using the '<mark style="color:yellow;">Set Text</mark>' Instruction on an '<a href="/info/game-creator-2-assets/cozy-stylized-weather-integration/triggers/on-any-weather.md"><mark style="color:yellow;">On Any Weather</mark></a>' Trigger. Make sure Trigger On Start is enabled so it initialize the UI on start.</p></figcaption></figure>

## Setting the weather or adding new weather to the forecast

<figure><img src="https://756218607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv2D32cRkVCHsF9VcmKPA%2Fuploads%2F5p4laQbHbAzVcaUAmMAz%2FScreenshot%202025-01-24%20161907.png?alt=media&amp;token=9257c008-7814-4cba-9096-416fa1a85b47" alt=""><figcaption><p>Using the '<a href="/info/game-creator-2-assets/cozy-stylized-weather-integration/instructions/set-weather.md"><mark style="color:yellow;">Set Weather</mark></a>' Instruction. In this case, the weather will be set to clear. This logic can also be applied to adding weather to the forecast.</p></figcaption></figure>

## Check the weather

<figure><img src="https://756218607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv2D32cRkVCHsF9VcmKPA%2Fuploads%2FawhLY48x6LJOi7pUz09G%2FScreenshot%202025-01-24%20161444.png?alt=media&amp;token=1f4f8899-75dd-4b12-a7b5-f7a670527a1b" alt=""><figcaption><p>Using the '<a href="/info/game-creator-2-assets/cozy-stylized-weather-integration/conditions/is-weather.md"><mark style="color:yellow;">Is Weather</mark></a>' Condition. In this case, checking if the current weather is mostly clear.</p></figcaption></figure>
