getWindVelocity | Multi Theft Auto: Wiki Skip to content

getWindVelocity

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function gets the wind velocity in San Andreas.

Note

The function will return false server-side if wind velocity has not been set before the function is called.

Syntax

getWindVelocity ( )

Code Examples

server

This example returns the wind velocity to a player if they use the command 'getwindvelocity'.

function commandGetWindVelocity(player, command)
local vx, vy, vz = getWindVelocity()
if (vx) then
outputChatBox("Wind Velocity X:"..vx.." Y:"..vy.." Z:"..vz, player, 255, 255, 0)
else
outputChatBox("Wind velocity is default.", player, 255, 255, 0)
end
end
addCommandHandler("getwindvelocity", commandGetWindVelocity)

See Also

World Functions