Difference between revisions of "MIST makeVec3GL"

From DCS World Wiki - Hoggitworld.com
 
(No difference)

Latest revision as of 23:21, 13 April 2018


mist.utils.makeVec3GL

Added with: Mist 3.2
Description
This function takes a Vec2 or Vec3 table and returns it as a Vec3 table with the y variable at ground level of a given location.
Syntax
vec3 mist.utils.makeVec3GL(table/table vec2/vec3 )
Valid Input Values:
vec2
Return value:
vec3
Return example:
vec3
Usage Examples:

do

trigger.action.smoke(mist.utils.makeVec3GL(trigger.misc.getZone('myZone').point), "GREEN")

end

Notes:
Example creates a smoke marker on at a the center of a zone at ground level.
Related Functions
makeVec2, makeVec3, zoneToVec3, makeVec3GL, vecToWP, unitToWP

Scripting Engine

MIST Root Page