SetWindVelocity: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser32 (talk | contribs) No edit summary |
|||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
This example shows how to make a set wind velocity command. | |||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
<syntaxhighlight lang="lua"> | |||
function setVelocity(command, x, y, z) | |||
if x and y and z then | |||
setWindVelocity (x, y, z) | |||
outputChatBox("You were set wind velocity to x: "..x.." y: "..y.." z: "..z) | |||
else | |||
outputChatBox("Syntax is: /setvelocity [x] [y] [z]") | |||
end | |||
end | |||
addCommandHandler("setvelocity", setVelocity) | |||
</syntaxhighlight> | |||
</section> | </section> | ||
==See Also== | ==See Also== | ||
{{Client_world_functions}} | {{Client_world_functions}} |
Revision as of 15:26, 22 December 2011
This function changes the wind velocity in San Andreas. This affects just the trees.
Syntax
bool setWindVelocity ( float velocityX, float velocityY, float velocityZ )
Required Arguments
- velocityX: The velocity on the x-coordinate
- velocityY: The velocity on the y-coordinate
- velocityZ: The velocity on the z-coordinate
Returns
Returns true if successful, false otherwise.
Example
This example shows how to make a set wind velocity command.
Click to collapse [-]
Clientfunction setVelocity(command, x, y, z) if x and y and z then setWindVelocity (x, y, z) outputChatBox("You were set wind velocity to x: "..x.." y: "..y.." z: "..z) else outputChatBox("Syntax is: /setvelocity [x] [y] [z]") end end addCommandHandler("setvelocity", setVelocity)
See Also
- createSWATRope
- getBirdsEnabled
- getCoronaReflectionsEnabled
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getGroundPosition
- getInteriorFurnitureEnabled
- getNearClipDistance
- getPedsLODDistance
- getRoofPosition
- getScreenFromWorldPosition
- getVehiclesLODDistance
- getWorldFromScreenPosition
- isAmbientSoundEnabled
- isLineOfSightClear
- isWorldSoundEnabled
- processLineOfSight
- resetAmbientSounds
- resetBlurLevel
- resetColorFilter
- resetCoronaReflectionsEnabled
- resetNearClipDistance
- resetPedsLODDistance
- resetVehiclesLODDistance
- resetWorldSounds
- setAmbientSoundEnabled
- setBirdsEnabled
- setColorFilter
- setCoronaReflectionsEnabled
- setInteriorFurnitureEnabled
- setInteriorSoundsEnabled
- setNearClipDistance
- setPedsLODDistance
- setVehiclesLODDistance
- setWorldSoundEnabled
- testLineAgainstWater
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel