stefwei

How to get knob sounds of a plane

Recommended Posts

Hello,

I'm trying to set up a new aircraft module for the Carenado SR22T. This helps me to get used to Linda and Lua-script writing.

I asked myself how getting knob sounds is done. It seems to be that these are FSX/P3D internal controls. But I can't figure out  how to set this up even if I saw in other scripts how this is written in a function.

Can anyone help me ?

Example:

function Ice_Protection_On()
	ipc.writeLvar("SR22_Ice_Protection_Knob", 1)
	ipc.control(_?_)	-- What goes here ?
end

 

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

The LINDA function Sounds(“sound-file”) will play the sound-file.wav in the FltSim/sounds folder. You needs to identify a .wav that provides the switch sound you require. 

Share this post


Link to post
Share on other sites

This solution already appeared in other posts I read here. I'll give it a try. Thanks for helping.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now