What is fsx fsuipc add turbulence c for aircraft?

Asked By 70 points N/A Posted on -
qa-featured

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. 

SHARE
Answered By 0 points N/A #131221

What is fsx fsuipc add turbulence c for aircraft?

qa-featured

 

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

Related Questions