Page 1 of 1

Proper flags for cars

Posted: 16 Jan 2019, 11:14
by Lobby
Hey, I want to inform you that since the flag interpretation of cars is the same as for roads the meaning of "flag normal":true (which is set by default) also enables the same flags. Namely flag normal will act as if you set

Code: Select all

"flag pkw":true,
"flag lkw":true,
"flag tractor":true,
"flag bus":true
The reason for that behavior is convenience when it comes to road definitions. However, for cars you usually don't want flags to be set that don't actually match your car's type (e.g. bus). Otherwise it could for example use roads that it's not supposed to.

To overcome that use

Code: Select all

"flag normal":false
and enable only the appropriate flags for your car afterwards :teach

Re: Proper flags for cars

Posted: 18 Jan 2019, 17:52
by Imran M
Finally! A post that makes flags easier to understand! :D

Re: Proper flags for cars

Posted: 18 Jan 2019, 20:24
by yusuf8a684
Lobby but how could we remove emergency vehicles and taxis from roads?

Re: Proper flags for cars

Posted: 18 Jan 2019, 20:54
by JustAnyone
Try

Code: Select all

"flag military":false
for removal of service cars, though it's not advised.

Re: Proper flags for cars

Posted: 18 Jan 2019, 21:08
by yusuf8a684
JustAnyone wrote:
18 Jan 2019, 20:54
Try

Code: Select all

"flag military":false
for removal of service cars, though it's not advised.
Thanks but I hope it will deny taxis on it too

Re: Proper flags for cars

Posted: 19 Jan 2019, 15:00
by yusuf8a684
What is the flag tag for fire engines?

Re: Proper flags for cars

Posted: 19 Jan 2019, 15:06
by yusuf8a684
"flagairport":false,"flagambulance":false,"flagbus":false,"flaglkw":false,"flagmedic":false,"flagmilitary":false,"flagnormal":false,"flagpedestrian":false,"flagpkw":false,"flagpolice":false,"flagtaxi":false,"flagtractor":false,"flagtram":true,"flagtruck":false,"
That is me trying to ban all flags except tram lol :bb

Re: Proper flags for cars

Posted: 19 Jan 2019, 18:40
by JustAnyone
Don't forget the space!

Re: Proper flags for cars

Posted: 19 Jan 2019, 19:24
by yusuf8a684
JustAnyone wrote:
19 Jan 2019, 18:40
Don't forget the space!
I added spaces lol but still ambulances, taxis, fire engines, polices and semi trucks can go over it :(