Difference between revisions of "DCS func getWind"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
Line 17: Line 17:
 
|rtnType= vec3
 
|rtnType= vec3
  
|rtnExample= vec3
+
|rtnExample= { ["y"] = 0, ["x"] = 2.1700058188484, ["z"] = 3.058223998561, }
  
 
|reqType1= table
 
|reqType1= table
Line 39: Line 39:
 
|examples=  
 
|examples=  
  
|notes=  
+
|notes= Returns wind values of 0 when the point is below or directly on ground level.
 
}}
 
}}
 
[[Category:Singleton Functions|getWind]]
 
[[Category:Singleton Functions|getWind]]

Revision as of 22:54, 30 July 2020

Scripting Root

Envrioment: Mission Scripting
Function: getWind Added with: 1.2.0
Member Of: atmosphere
Syntax: vec3 atmosphere.getWind(table vec3 )
Description: Returns a velocity vector of the wind at a specified point


Return Value: vec3
Return Example: { ["y"] = 0, ["x"] = 2.1700058188484, ["z"] = 3.058223998561, }
Examples:
Related Functions: atmospherefunctions: getWind, getWindWithTurbulence, getTemperatureAndPressure
Notes: Returns wind values of 0 when the point is below or directly on ground level.