> 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="/files/xm6qk2M7EDXiwvwaKylY" alt=""><figcaption><p><strong>On the left side</strong> using the '<a href="/pages/jmAuku8O5Sd7he9pZxbw"><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="/pages/ODF3H7IawO8qh26BbsbU"><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="/files/i6XxtXQtKh9Xa0lQLkUX" alt=""><figcaption><p>Using the '<mark style="color:yellow;">Set Text</mark>' Instruction on an '<a href="/pages/Bj4qEo6IzuhFdOtwMviQ"><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="/files/ZqPrIkgISi1GIUpOi148" alt=""><figcaption><p>Using the '<a href="/pages/zGpy8xlQwmG2ExjDAilO"><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="/files/BXhN4mwEpNQ7yKdI8TQZ" alt=""><figcaption><p>Using the '<a href="/pages/8SzIpEjn215PXdL6LawD"><mark style="color:yellow;">Is Weather</mark></a>' Condition. In this case, checking if the current weather is mostly clear.</p></figcaption></figure>
