MIST getBRString
From DCS World Wiki - Hoggitworld.com
mist.getBRString
Added with: Mist 3.0 |
Description |
Returns a string of the average position of units defined by a UnitNameTable in the bearing/range format and optionally in metric distances. Uses most of the arguments that tostringBR does. |
Syntax |
string mist.getBRString(table vars ) |
Valid Input Values: |
vars tables have the following recognized fields( required entries in blue, optional in green): vars = { units = UnitNameTable units, ref = table ref, alt = boolean alt, metric = boolean metric, } units is a UnitNameTable- a table of unit names that follow a special set of rules (see the entry on UnitNameTables). ref is a vec3 point to be referenced alt if present will display the averaged altitude of units metric if present the distance will be in metric. If not present distance is in Nautical Miles and altitude in feet. |
Return value: |
string |
Return example: |
mist.getBRString({ units = {"Pilot #001"}, ref = trigger.misc.getZone('LZ').point, alt = false, metric = false }) => 145 for 38 |
Usage Examples: |
do TBD end |
Notes: |
Related Functions |
tostringMGRS, tostringLL, tostringBR, getMGRSString, getLLString, getBRString, getLeadingPos, getLeadingMGRSString, getLeadingLLString, getLeadingBRString, getMilString, getClockString, getDateString, stringMatch, stringCondense |