MIST vecToWP

From DCS World Wiki - Hoggitworld.com
Revision as of 06:24, 12 April 2018 by Grimes (talk | contribs) (Created page with "{{Mission Scripting |fName= mist.utils.vecToWP| |vNum = Mist 4.1 |desc= This function takes a Vec2/3 table and returns it as a WP table {x, y, alt}. If passed as a vec2 tab...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.utils.vecToWP

Added with: Mist 4.1
Description
This function takes a Vec2/3 table and returns it as a WP table {x, y, alt}. If passed as a vec2 table the altitude value will be returned as ground level.
Syntax
WP mist.utils.vecToWP(table vec2/3 )
Valid Input Values:
any vec2/vec3 table.
Return value:
WP
Return example:
{x, y, alt}
Usage Examples:

do

local point = mist.utils.vecToWP(trigger.misc.getZone('pointA').point)

end

Notes:
Related Functions
makeVec2, makeVec3, zoneToVec3, makeVec3GL, vecToWP, unitToWP

Scripting Engine

MIST Root Page