Differences
This shows you the differences between two versions of the page.
— |
addinganotherhorn [2017/05/24 14:27] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Adding another horn ====== | ||
+ | Game Version: \\ | ||
+ | Programs required: | ||
+ | ---- | ||
+ | |||
+ | [[modding_tutorials|Modding Index]] | [[vehicle_modding|Vehicle Tutorials]] | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Tutorial Intro ===== | ||
+ | |||
+ | This tutorial shows you how to have two horns on your vehicle. | ||
+ | |||
+ | ===== Prep Work ===== | ||
+ | |||
+ | |||
+ | |||
+ | ===== Full Details ===== | ||
+ | |||
+ | Hello! | ||
+ | |||
+ | Now I will tell you how to add another horn to your vehicle in fs 2011/2013. | ||
+ | |||
+ | Before you start, make sure to backup your mod first! | ||
+ | |||
+ | First of all, you need to download this and place it in your vehicles folder: | ||
+ | [url]http://www.sendspace.com/file/eworkz[/url]. | ||
+ | This is the script's lua file and is required to have, otherwiese the script will don't work. | ||
+ | |||
+ | [size=10pt]Placing in modsdesc:[/size] | ||
+ | [b]Between <110n> and </110n>[/b] | ||
+ | |||
+ | <text name="radio"> | ||
+ | <de>An</de> | ||
+ | <en>On</en> | ||
+ | </text> | ||
+ | |||
+ | |||
+ | [b]Between <inputbindings> and </inputbindings>[/b] | ||
+ | |||
+ | <input name="RADIO" key1="KEY_space" button="" /> | ||
+ | |||
+ | You can change KEY_space to the key you want to use for your second horn. | ||
+ | |||
+ | |||
+ | [b]Between <specializations> and </specializations>[/b] | ||
+ | |||
+ | <specialization name="radio" className="radio" filename="radio.lua"/> | ||
+ | |||
+ | The radio.lua might have to be changed depending on where in the folder you put it. | ||
+ | EX. putting in folder called "scripts" then change it to scripts/radio.lua. | ||
+ | |||
+ | |||
+ | [b]Between <vehicleTypes> and </type>[/b] | ||
+ | |||
+ | <specialization name="radio" /> | ||
+ | |||
+ | |||
+ | [size=10pt]Placing in mods .xml file. EX. car.xml[/size] | ||
+ | |||
+ | |||
+ | [b]In the bottom but above </vehicle>[/b] | ||
+ | |||
+ | <radio count="1" volume="30"> | ||
+ | <song1 filename="sounds/horn2.wav" /> | ||
+ | </radio> | ||
+ | |||
+ | The "sounds/horn2.wav" might have to be changed depending on where you got the second horn sound. | ||
+ | |||
+ | |||
+ | Now it should work so go ingame and test it ;) | ||
+ | |||
+ | Good luck! | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | Original Author: Wille | Date: February 28, 2013 | ||
+ | | ||
+ | [[modding_tutorials|Modding Index]] | [[vehicle_modding|Vehicle Tutorials]]\\ | ||
+ | |||
+ | {{:fsukwiki.png?nolink&200 |}} |