- Documentation
- Server functions
- setWindVelocity
Function
setWindVelocity
Stores the wind direction and strength. The value is sent to players and read with getWindVelocity on the client, e.g. for your own effects.
Syntax
bool setWindVelocity(float x, float y, float z)Arguments
xfloat- Wind X component.
yfloat- Y component.
zfloat- Z component.
Returns
true on success.
Example
setWindVelocity(0.5, 0.2, 0)
Notes
State for scripts. The game does not change tree and cloud movement based on it yet.