Difference between revisions of "DCS func getWind"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
|fName= getWind | |fName= getWind | ||
| − | |vNum= 1.2. | + | |vNum= 1.2.6 |
|par1= [[DCS_singleton_atmosphere|atmosphere]] | |par1= [[DCS_singleton_atmosphere|atmosphere]] | ||
| Line 17: | Line 17: | ||
|rtnType= vec3 | |rtnType= vec3 | ||
| − | |rtnExample= | + | |rtnExample= { ["y"] = 0, ["x"] = 2.1700058188484, ["z"] = 3.058223998561, } |
|reqType1= table | |reqType1= table | ||
| Line 37: | Line 37: | ||
[[DCS_singleton_atmosphere|'''atmospherefunctions:''']] {{listOfAtmoFuncs}} | [[DCS_singleton_atmosphere|'''atmospherefunctions:''']] {{listOfAtmoFuncs}} | ||
| − | |examples= | + | |examples= The following stores the wind values at an interval of 500m starting at 0 ASL over a given point. |
| − | |notes= | + | local point = trigger.misc.getZone('z').point |
| + | local windOverPoint = {} | ||
| + | for i = 0, 20 do | ||
| + | point.y = i * 500 | ||
| + | windOverPoint[i+1] = atmosphere.getWind(point ) | ||
| + | end | ||
| + | |||
| + | |notes= Returns wind values of 0 when the point is below or directly on ground level. | ||
}} | }} | ||
[[Category:Singleton Functions|getWind]] | [[Category:Singleton Functions|getWind]] | ||
| + | [[Category:Game Patch 1.2.6|getWind]] | ||
