[TC] Gaming Forums
[TUTORIAL] Sirens - Manually Scripting - Printable Version

+- [TC] Gaming Forums (https://forum.city-driving.co.uk)
+-- Forum: General Information (/forumdisplay.php?fid=1)
+--- Forum: General Discussions (/forumdisplay.php?fid=4)
+---- Forum: Tutorials & Guides (/forumdisplay.php?fid=48)
+---- Thread: [TUTORIAL] Sirens - Manually Scripting (/showthread.php?tid=21934)



Sirens - Manually Scripting - Ash - 2016-03-27 08:16

For those of you who wish to control your new sirens through LFS Scripts rather than through TC Lights (Maybe because you wish to run more than one local insim application), then please read the following.

You will need to have ONE spare CTRL F1 - F8 or ALT F1 - F8 key spare for this to work.

For my example, I will be using CTRL F10, but obviously change the values to suit your needs.

First, you will need 3 new notepad documents open. You will need to name them as followed: (Please ensure when saving, to select "Save as type" to All files so you can type ".lfs" as the file extension. If you do this wrong, your document will be called document.lfs.txt which will not work.)
  • sirenslow.lfs
  • sirenfast.lfs
  • sirenoff.lfs

These should be saved within your LFS > Data > Script directory for this to work!


Inside each relative text document, copy and paste the following quotes and adjust the values which you wish to use.

sirenslow.lfs Wrote:/echo ^7Siren Activated - Slow
/siren=slow

//EDIT THE BELOW VALUE TO SUIT YOUR NEEDS
/ctrlf 10 //sirenfast

sirenfast.lfs Wrote:/echo ^7Siren Activated - Fast
/siren=fast

//EDIT THE BELOW VALUE TO SUIT YOUR NEEDS
/ctrlf 10 //sirenoff

sirenoff.lfs Wrote:/echo ^7Siren Deactivated
/siren=off

//EDIT THE BELOW VALUE TO SUIT YOUR NEEDS
/ctrlf 10 //sirenslow

Next step. In LFS, head to the options menu and navigate to LFS > Options > Game > CTRL + or ALT + and find CTRL F10 (or whatever combination you have chosen). Type in the box //sirenslow (Yes, that is two "/"), followed by OK and then press the orange OK at the bottom of your screen to confirm.

Right, thats it!

In LFS now, whenever you press CTRL + F10 (or your combination), you will cycle through the two sirens!

Any questions, pop a post below!

Ash


RE: Sirens - Manually Scripting - Adam - 2016-03-27 09:34

Is there any way i could bind these to wheel buttons?

don't worry i did it


RE: Sirens - Manually Scripting - Ash - 2016-03-27 09:54

Of course Smile Either by external software such as Logitech Profiler, or even in the LFS > Controls menu Smile


RE: Sirens - Manually Scripting - Borja - 2016-03-27 15:58

I dont understand it.
But, for what i need a script?
If in control f1 i write /siren=fast, it turn on in fast mode. Whats the work of script?


RE: Sirens - Manually Scripting - Wouter - 2016-03-27 16:11

Borja, the point is than you can do it with one button with this script.


RE: Sirens - Manually Scripting - GT4tube - 2016-03-27 16:47

Ash

+rep

Smile


RE: Sirens - Manually Scripting - Borja - 2016-03-27 22:13

(2016-03-27 16:11)CruiseLover Wrote:  Borja, the point is than you can do it with one button with this script.

Thanks for explain it to me Smile


RE: Sirens - Manually Scripting - Wouter - 2016-03-28 14:06

(2016-03-27 22:13)Borja Wrote:  
(2016-03-27 16:11)CruiseLover Wrote:  Borja, the point is than you can do it with one button with this script.

Thanks for explain it to me Smile

No problem mate Smile


RE: Sirens - Manually Scripting - Quattro10V - 2016-12-23 01:34

Does this allow you to run the 3rd tone (pier/hilo) separately and not as a dual tone??


RE: Sirens - Manually Scripting - Adorable - 2016-12-23 02:17

(2016-12-23 01:34)Quattro10V Wrote:  Does this allow you to run the 3rd tone (pier/hilo) separately and not as a dual tone??

Set your regular horn with shift + h to horn 4, also TC Lights can help you with the:
tap | tap+hold combo.


RE: Sirens - Manually Scripting - Zoltri - 2017-01-27 15:52

Is there a way for me to bind the keys to PG UP??


RE: Sirens - Manually Scripting - bowler - 2017-01-28 09:47

James i showed u how to do this


RE: Sirens - Manually Scripting - Zoltri - 2017-01-28 12:46

Would I be able to add HORN 5 to the loop?
So: SirenSlow --> SirenFast --> HORN5 (LOOP)

Been trying all morning. Please help!