Hi everyone. I'm curious about how to write a particular script on fsx fsuipc add turbulence c for aircraft ? It seems to be a very tricky script. Can you give me a quick overview regarding this topic? What is the most difficult task about this one? Your answers are highly appreciated.Â
What is fsx fsuipc add turbulence c for aircraft?
Â
fsuipc is another module that all0ows outside programs to relate with fsx.There are alternatives out there and for FSX MS provides SimConnect,fsuipc 4 is built on SimConnect
Â
You can take reference of below script which is used to play sound on and if turbulence is detected
Â
Play sound while turbulence is detected —
Â
sflg=0
ref=0
Â
function turbulence(ofst,val)
ground=ipc.readUW(0x0366)
if (val > 0) and (sflg == 0) and (ground == 0) then
ref=sound.playloop("turb.wav")
sflag=1
Â
end
Â
if (val == 0) and (sflg == 1) then
sound.stop(ref)
sflag=0
Â
end
end
Â
Thanks