in order to make say button 39 different for all cars, I am assuming you would do something like this.
FZ5.lfs
/btn 39 = add tc command here
GTI.lfs
/btn 39 = add different command here
and so on...
if you dont add the line in GTI.lfs then whatever the default command for btn 39 was that will be used.
OR
so instead of editing all the [cars].lfs you could just add a command in road.lfs
/btn 39 = /say hello
and in singleseaters(dont know the exact name).lfs file you would add the commnd
/btn = tc
Hi, I'm kinda new to the scripting thing. I was wondering if one of you scripting guru's could make a script for me.
What I'm wanting to do is have a button mapped to shift to a specific gear. So that I'm able to use paddle shifting, but when I come up to a corner, eg turn 1 Ky2, i can brake and punch the button to go directly to 4th gear.
The commands are listed in the Commands.txt file in the docs folder. That is, if you have U20 installed.
I'm not sure what you mean about it being client side only. It can work on a host if you type it on a host. You can also use a script to call admin commands that affect the host. So it some senses it's client side only and others, it's not.
If that explanation doesn't help much, please give an example of what you want to do with it, on a host.
I come from a background of running game servers for the gaming community I help run. If I use a CounterStrike server as an example ...
I can construct scripts that run server-side that, as an example, would configure the server for a match and announce the fact to the players on the server. These would be run by the admins. I can also get scripts to run on set events - round start/end etc. This is possible because the server has a command set that can be configured into scripts.
I, and everyone else, can also construct client-side scripts that would allow the buying of weapons, ammo, armour etc. These scripts can be bound to keys. It is also possible to create strings of commands and designate an alias to them. This alias is then bound to a key, called and the commands execute.
With LfS ...
From what I can gather, I can construct a script that can control a host and that script can resides client-side or on the host. Is that correct? So what happens if I have a script of the same name client-side?
Thanks for the explanation. I don't think there is a way for an admin to start a script running on a host, from a script file that already exists on the host. So in fact, the script system is only client side at the moment (unless you have access to the host via a keyboard or InSim).
I've added it to my list. I know that this and the wait / pause command and some attaching of scripts to events, would open up a lot of new possibilities.