But now (version 0.1.0.225 and later) you can also use command lmc_say and some nice lady from windows will talk to you .
You can try yourself with code
Code: Select all
lmc_say('Hello world')
One more script for Xplaners, little more complicated. This will call selected radar altitudes when getting close to ground. Now it talks in both way, but comment out one of the lmc_say commands if you need only landing notifications:
Code: Select all
gLastRAltInterval = 0
gRAltCalls = {5, 10, 20, 50, 100, 200, 500}
function getRAltInterval(value)
if value < gRAltCalls[1] then
return 0
end
for i = 1,#gRAltCalls do
if value <= gRAltCalls[i] then
return i-1
end
end
return #gRAltCalls
end
function checkRAlt(cra)
curIndex = getRAltInterval(cra)
if gLastRAltInterval ~= curIndex then
if gLastRAltInterval > curIndex then
lmc_say('' .. gRAltCalls[gLastRAltInterval])
else
lmc_say('' .. gRAltCalls[curIndex])
end
gLastRAltInterval = curIndex
end
end
lmc_on_xpl_var_change('sim/cockpit2/gauges/indicators/radio_altimeter_height_ft_pilot', checkRAlt, 1000)