Page 1 of 2

Car & Road Flags

Posted: Mon Aug 07, 2017 10:39
by Lobby
With version 330 you have to ability to allow only passenger cars/truck on your own roads using flags.

If only passenger cars should be allowed add:

Code: Select all

"flag normal":false,
"flag pkw":true
To allow trucks only use:

Code: Select all

"flag normal":false,
"flag lkw":true
You have to set flag normal to false as it's enabled by default and includes booth, passenger cars and trucks.
roadflags.png
roadflags.png (43.87 KiB) Viewed 4181 times
Ensure to set these flags properly for your own cars in case you use car plugins. The code is the same as for roads.

Flags that are pre-defined by the game:

Code: Select all

"flag all"          // Special flag that enables all other flags at once
"flag normal"       // Special flag that enables some default flags (for roads that is pkw, lkw, tractor and bus)

"flag military"
"flag pedestrian"
"flag tram"
"flag airport"

"flag pkw"
"flag lkw"
"flag bus"
"flag tractor"

"flag train"
"flag maglev"
"flag monorail"
"flag high speed"
"flag subway"

Re: Cars & Roads: Flags

Posted: Mon Aug 07, 2017 10:48
by Josh
Is it possible in future to have bus flags?
Good job Lobby!

Re: Cars & Roads: Flags

Posted: Mon Aug 07, 2017 10:55
by Lobby
Of course :)

Re: Cars & Roads: Flags

Posted: Fri Aug 11, 2017 2:44
by CommanderABab
1l

Re: Cars & Roads: Flags

Posted: Fri Aug 11, 2017 2:44
by CommanderABab

Code: Select all

"flag normal":false,
"flag lkw":true
"flag normal":false,
"flag lkw":true

Re: Cars & Roads: Flags

Posted: Fri Aug 11, 2017 2:48
by CommanderABab
So, what does the l in lkw stand for?

Re: Cars & Roads: Flags

Posted: Fri Aug 11, 2017 16:25
by Lobby
LKW stands for Lastkraftwagen

Last means heavy things.

Re: Cars & Roads: Flags

Posted: Fri Aug 11, 2017 18:06
by CommanderABab
Thanks!

Re: Cars & Roads: Flags

Posted: Fri Sep 22, 2017 6:45
by JustAnyone
Is it possible to add custom Flags to the cars?

Re: Cars & Roads: Flags

Posted: Fri Sep 22, 2017 7:34
by CommanderABab
User2 through user9

Re: Cars & Roads: Flags

Posted: Fri Sep 22, 2017 15:11
by JustAnyone
How do I make that my Custom cars Use The road? Anything at car spawner or somethin'?

Re: Cars & Roads: Flags

Posted: Fri Sep 22, 2017 21:43
by Lobby
Set a flag (e.g. user7) in both, your road and your car plugin.

Re: Cars & Roads: Flags

Posted: Sat Nov 18, 2017 12:12
by danekbel
What's the flag for buses?
I used

Code: Select all

flag bus:false;
, but buses are still driving on the road

Re: Cars & Roads: Flags

Posted: Sat Nov 18, 2017 12:17
by JustAnyone
danekbel wrote:
Sat Nov 18, 2017 12:12
What's the flag for buses?
I used

Code: Select all

flag bus:false;
, but buses are still driving on the road
Passenger I think.

Re: Cars & Roads: Flags

Posted: Sat Nov 18, 2017 12:35
by CommanderABab
Need quotes around flag bus.

Re: Cars & Roads: Flags

Posted: Sat Nov 18, 2017 12:38
by danekbel
CommanderABab wrote:
Sat Nov 18, 2017 12:35
Need quotes around flag bus.
¿?
Can you show an example please

Re: Cars & Roads: Flags

Posted: Sat Nov 18, 2017 12:43
by CommanderABab
No. I don't know if a flag bus exists. But if it did you would need

Code: Select all

"flag bus":false
to exclude buses.

Re: Cars & Roads: Flags

Posted: Sat Nov 18, 2017 13:08
by 22Alpha
CommanderABab wrote:
Sat Nov 18, 2017 12:43
No. I don't know if a flag bus exists. But if it did you would need

Code: Select all

"flag bus":false
to exclude buses.
I tried that one, and the code was accepted. But I haven't kept an eye whether it works.

Re: Cars & Roads: Flags

Posted: Sat Nov 18, 2017 13:30
by CommanderABab
Lots of things are just ignored if they don't exist.

Re: Cars & Roads: Flags

Posted: Wed Nov 29, 2017 20:19
by Lobby
Yes, "flag bus":true exists :)