MIST HeliBuildWP

From DCS World Wiki - Hoggitworld.com
Revision as of 23:16, 13 April 2018 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.heli.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.
Syntax
table mist.heli.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 200 kilometers per hour

altitude = any positive number in meters. If not present defaults to 500 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.heli.buildWP(startPoint, TurningPoint, 120, 200, 'agl') 
 path[#path + 1] = mist.heli.buildWP(startPoint, TurningPoint, 170, 10, 'agl') 
 end

Notes:
Functionally identical to buildWP(fixedWing) except for default values are adjusted for helicopters
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