Difference between revisions of "MIST fixedWingBuildWP"

From DCS World Wiki - Hoggitworld.com
 
 
Line 73: Line 73:
 
   local path = {}  
 
   local path = {}  
 
   path[#path + 1] = mist.fixedWing.buildWP(startPoint, TurningPoint, 120, 200, 'agl')  
 
   path[#path + 1] = mist.fixedWing.buildWP(startPoint, TurningPoint, 120, 200, 'agl')  
   path[#path + 1] = mist.fixedWing.buildWP(startPoint, TurningPoint, 170, 10, 'agl')  
+
   path[#path + 1] = mist.fixedWing.buildWP(destPoint, TurningPoint, 170, 10, 'agl')  
 
   end
 
   end
 
</code>
 
</code>

Latest revision as of 21:29, 28 July 2021


mist.fixedWing.buildWP

Added with: Mist 2.0
Description
Returns a table of a valid waypoint entry that is defined by the vec2 or vec3 coordinate of point. The optional varibale string formation defines the type of formation used with the waypoint, if no formation is given the formation will default to "cone". The optional variable speed takes a numerical value in meters per second and assigns it to the waypoint. If speed is not defined the mission editor default of 20 kilometers per hour will be used.
Syntax
table mist.fixedWing.buildWP(table vec2/vec3 , string type ,number speed ,number altitude ,string altitudeType )
Valid Input Values:
vec2/vec3 = valid vec2/vec3 table

type=

 flyOverPoint
 turningpoint

speed = any number for the speed in meters per second. If not present defaults to 500 kilometers per hour

altitude = any positive number in meters. If not present defaults to 2000 meters

altitude type = "BARO", "ASL", "RADIO", or "AGL" If not present defaults to Radio(AGL)

 Baro (ASL)  - The altitude will be measured Above Sea Level 
 Radio (AGL) - The altitude will be measured Above Ground Level
Return value:
table
Return example:
exampleWaypoint
Usage Examples:
 do
 local path = {} 
 path[#path + 1] = mist.fixedWing.buildWP(startPoint, TurningPoint, 120, 200, 'agl') 
 path[#path + 1] = mist.fixedWing.buildWP(destPoint, TurningPoint, 170, 10, 'agl') 
 end

Notes:
Functionally similar to buildWP(helicopter) except default values are adjusted for fixed wing aircraft.
Related Functions
General goRoute
Ground groupToPoint, groupToRandomZone, groupRandomDistSelf, groupToRandomPoint, buildWP(ground), patrol, patrolRoute
Fixed Wing buildWP(fixedWing)
Helicopter buildWP(helicopter)

Scripting Engine

MIST Root Page