Env wind

From Valve Developer Community
Jump to: navigation, search
Env wind
Todo: The deprecated template {{Base point}}, {{Point ent}} or {{Tf2 point}} (and similar) was used. Use {{Entity}} instead.
Env wind.png

env_wind is a point entity available in all Source Source games. It creates wind throughout an entire map.

Note.png Note: In some/all multiplayer games, this is a preserved entity.
  • On a new round, it will intentionally not reset itself to its default properties (including position).
    Placementtip.gif Workaround: If this is an issue, you can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
Note.png Note: Wind direction is determined by env_wind's yaw value.
Note.png Note: In most games that have $treeSway, this entity is required in order for the materials to simulate wind blowing on them. $treesway does not require env_wind if $treeswaystatic (Team Fortress 2Garry's Mod only) is used.
Bug.png Bug: The wind effect in the client game will not change when a new map is loaded which does not contain an env_wind entity.
In code, it is represented by theCEnvWindclass, defined in theeffects.cppfile.


Min normal speed (minwind) <integer>
Minimum speed of the wind while idling.
Max normal speed (maxwind) <integer>
Maximum speed of the wind while idling.
Min gust speed (mingust) <integer>
Minimum speed of wind gusts.
Max gust speed (maxgust) <integer>
Maximum speed of wind gusts.
Min gust delay (mingustdelay) <integer>
Minimum time delay between random gusts.
Max gust delay (maxgustdelay) <integer>
Maximum time delay between random gusts.
Gust Duration (gustduration) <integer>
How long will the wind gust for.
Max gust dir change (degrees) (gustdirchange) <integer>
Maximum amount that the wind's direction changes due to a gust.
Radius (windradius) <float> (only in Left 4 Dead series)
The radius this entity applies wind effects to. -1 for global effect.

Name (targetname) <string>
The targetname that other entities refer to this entity by.


SetWindDir <integer> (only in Garry's Mod) !FGD
Set the wind's direction to this.
Enable  (only in Portal 2: Community Edition)
Turns the wind on
Disable  (only in Portal 2: Community Edition)
Turns the wind off


Fired when a wind gust begins.
Fired when a wind gust ends.

See Also