GetWindVelocity
From Multi Theft Auto: Wiki
This function gets the wind velocity in San Andreas.
Syntax
int, int, int getWindVelocity ( )
Returns
- velocityX: The velocity on the x-coordinate or false if the wind velocity is default.
- velocityY: The velocity on the y-coordinate or nil if the wind velocity is default.
- velocityZ: The velocity on the z-coordinate or nil if the wind velocity is default.
Example
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
- areTrafficLightsLocked
- getAircraftMaxHeight
- getCloudsEnabled
- getGameSpeed
- getGravity
- getGroundPosition
- getHeatHaze
- getJetpackMaxHeight
- getScreenFromWorldPosition
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getWorldFromScreenPosition
- getZoneName
- isLineOfSightClear
- processLineOfSight
- resetHeatHaze
- resetSkyGradient
- resetWindVelocity
- setAircraftMaxHeight
- setCloudsEnabled
- setGameSpeed
- setGravity
- setHeatHaze
- setSkyGradient
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- testLineAgainstWater
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getMinuteDuration
- getPlayerBlurLevel
- isGarageOpen
- isWorldSpecialPropertyEnabled
- setCloudsEnabled
- setGarageOpen
- setJetpackMaxHeight
- setMinuteDuration
- setPlayerBlurLevel
- setWorldSpecialPropertyEnabled
- setAmbientSoundEnabled
- isAmbientSoundEnabled
- resetAmbientSounds
- setWorldSoundEnabled
- isWorldSoundEnabled
- resetWorldSounds
- setInteriorSoundsEnabled
- getInteriorSoundsEnabled
- setRainLevel
- getRainLevel
- resetRainLevel
- setSunSize
- getSunSize
- resetSunSize
- setSunColor
- getSunColor
- resetSunColor
- setFarClipDistance
- getFarClipDistance
- resetFarClipDistance
- setFogDistance
- getFogDistance
- resetFogDistance
- createSWATRope
- removeWorldModel
- restoreWorldModel
- restoreAllWorldModels
- setOcclusionsEnabled
- getOcclusionsEnabled
- setBirdsEnabled
- getBirdsEnabled
FROM VERSION 1.3.1 r5000 ONWARDS
FROM VERSION 1.3.1 r5063 ONWARDS