Hi everyone, I'm currently working on a mod that makes the JTAC give the target location in Degrees Minutes Seconds so that you can bomb them precisely with the JDAM or just to find the targets in the first place to employ other weapons. All I'm doing is modifying the NATO.lua file in Sounds/Speech/. Part of my code that creates the JTAC's voice line looks like this.
local strLat = base.string.format('%02d',latDeg) .. '.' .. base.string.format('%02d',latMin) .. '.' .. base.string.format('%02d',latSec) .. '.' .. base.string.format('%02d',latDec)
local strLon = base.string.format('%02d',lonDeg) .. '.' .. base.string.format('%02d',lonMin) .. '.' .. base.string.format('%02d',lonSec) .. '.' .. base.string.format('%02d',lonDec)
Currently the output coordinate will look something like this: 54.25.14.88
I would like to format it so that it is easier to understand, like this: 54°25'14.88"
When I try to change the periods to apostrophes or quotation marks, it breaks the script and the radio won't work at all, and I'm unsure if it's possible to display the degrees symbol in the radio message.
Any help would be greatly appreciated!
mu110