API ReferenceGE Extensionsflowgraphnodesenvironment
Set Wind Node
- **File:** `flowgraph/nodes/environment/setWind.lua`
Overview
- File:
flowgraph/nodes/environment/setWind.lua - Name: Set Wind
- Category:
once_p_duration - Icon:
simobject_scatter_sky
Sets wind speed for a specific vehicle or all vehicles. Resets wind to zero on stop.
Pin Schema
| Dir | Type | Name | Description |
|---|---|---|---|
| in | number | vehId | Single vehicle ID; blank = all vehicles. |
| in | number | windSpeed | Wind speed in metres per second. |
| in | vec3 | windDir | Wind direction vector. |
Tags
environment, wind
Key Methods
| Method | Description |
|---|---|
onNodeReset() | Sets wind to (0,0,0) for all vehicles. |
_executionStopped() | Calls onNodeReset(). |
work() | Computes wind vector and sends obj:setWind() to matching vehicles. |
See Also
- Directional Gravity - Related reference
- Get Cloud by ID - Related reference
- Get Fog - Related reference
- FlowGraph Guide - Guide