ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getWindVelocity

Function

getWindVelocity

Server and clientWorldIdentical to MTA:SA

Returns the wind stored with setWindVelocity. On the server false when not set; on the client 0, 0, 0 then.

Syntax

float, float, float getWindVelocity()

Returns

x, y, z.

Example

local wx, wy = getWindVelocity()
outputDebugString(("Wiatr: %.2f %.2f"):format(wx, wy))

See also