ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setWindVelocity

Function

setWindVelocity

ServerWorldIdentical to MTA:SA

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.

See also