Community Forum

<inputBindings>

Forum Overview >> Farming Simulator 22

CategoryFarming Simulator 22
Created13.05.2022 08:51


Afmodding (1DAFUL) 13.05.2022 08:51
Hi All

I need your help please.
I would like to add custom key binding to my mod, (it is vehicle).
There is an audio file (siren sound) in mod's folder, has been added as audio source to mod, named: "wail".
I tried the siren on "cover" function. Everything is working well but in the top left menu (F1) there is "open cover" (N), it is ridiculous :)
Is there any chance rename "open cover" - "close cover" to "Siren ON/OFF"?
Any other idea how to add audio file as siren?

Afmodding (1DAFUL) 03.07.2022 09:16
Hi All

I need your help please.
I would like to add custom key binding to my mod, (it is vehicle).
There is an audio file (siren sound) in mod's folder, has been added as audio source to mod, named: "wail".
I tried the siren on "cover" function. Everything is working well but in the top left menu (F1) there is "open cover" (N), it is ridiculous :)
Is there any chance rename "open cover" - "close cover" to "Siren ON/OFF"?
Any other idea how to add audio file as siren?

Bilbo Beutlin (BBeutlin) 03.07.2022 11:50
The spec 'Cover' doesn't support changing of action text or input button.

Try with 'Foldable', this supports a lot of custom settings, for example:
<foldingParts foldInputButton="{actionBinding}" objectText="Siren" posDirectionText="ON" negDirectionText="OFF" >
<foldingPart animationName="sirenAnim" />
In this animation you can setup the sound like eg.
<animation name="sirenAnim" looping="true" ..

Use Notepad++ "search in files" for example code in default vehicles.
For a complete list of all supported xml attributes see gameSource.zip/dataS/scripts/vehicles/specializations/Foldable.lua and */AnimatedVehicle.lua

Afmodding (1DAFUL) 19.07.2022 07:11
Bilbo Beutlin thank you so much for your help.
It's been very useful!


Note: Log in to post. Create a new account here.