# llWind

*LSL function*

```lsl
vector vector llWind(vector offset);
```

- `vector offset`: Offset relative to the prim's position, expressed in local coordinates.

- Returns: `vector`
- Energy: 10

Returns a vector representing the wind velocity at the prim's position offset by the vector offset.

Returns a [vector](https://wiki.secondlife.com/wiki/vector) that is the wind velocity at the prim's [position](/functions/llGetPos/) + **offset**

```lsl title="How to use" frame="terminal"
vector result = llWind(ZERO_VECTOR);
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    touch_start(integer num)
    {
        llSay(0, "Wind velocity: " + (string)llWind(ZERO_VECTOR));
    }
}
```

</details>

<details>
<summary>Example 2</summary>

```lsl
// wind interpretation as angle and speed
default
{
    state_entry()
    {
        vector windVector = llWind( ZERO_VECTOR);
        float windSpeed = llVecMag( windVector);
        float windDirection = llAtan2( windVector.y, windVector.x);
        integer compassWind = ( 450 - (integer)( RAD_TO_DEG*windDirection))%360;
        llOwnerSay( "\nWind direction: "+(string)compassWind+"°\nWind speed: "+(string)windSpeed+" m/S");
    }
}
```

</details>

## Known issues

[SVC-3131](https://jira.secondlife.com/browse/SVC-3131): `llWind()` and viewer wind effects do not match

## See also

### Articles

- [Weather](https://wiki.secondlife.com/wiki/Category:LSL_Weather) — SL Weather information
- [Moderated in-world wind](https://wiki.secondlife.com/wiki/User:Dora_Gustafson/moderated_world_wind)

---

*Source: [LlWind](https://wiki.secondlife.com/wiki/LlWind) on the Second Life Wiki. Content from the Second Life Wiki articles LlWind (revision 1218505, 2025-10-23) and Template:LSL Function/offset (revision 1169422, 2012-06-18), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llWind/
