MIST tostringBR

From DCS World Wiki - Hoggitworld.com
Revision as of 01:26, 18 September 2020 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.toStringBR

Added with: Mist 2.0
Description
Returns a string of the Bearing Range and Altitude (BRA) based on the inputed variables. The number az defines the bearing in radians. Range is defined by dist. Altitude is defined by the alt. If metric is not present the function will assume all values are in imperial units and will return the Range and Altitude in Nautical Miles and Feet. If metric is present the metric system will be used for these values.
Syntax
string mist.toStringBR(number az ,number dist , number altitude ,boolean metric )
Valid Input Values:
az = heading in radians

dist is distance to target in meters alt is altitude of target in meters metric is a boolean value that if present will return the string in the metric system. If not present it returns in Nautical Miles for distance and feet for altitude

Return value:
string
Return example:
045 for 34 at 23000
Usage Examples:

do

 TBD

end

Notes:
Related Functions
tostringMGRS, tostringLL, tostringBR, getMGRSString, getLLString, getBRString, getLeadingPos, getLeadingMGRSString, getLeadingLLString, getLeadingBRString, getMilString, getClockString, getDateString, stringMatch, stringCondense

Scripting Engine

MIST Root Page