Proper flags for cars

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Proper flags for cars

#1

Post 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

User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Proper flags for cars

#2

Post by Imran M »

Finally! A post that makes flags easier to understand! :D

User avatar
yusuf8a684
Reactions:

Re: Proper flags for cars

#3

Post by yusuf8a684 »

Lobby but how could we remove emergency vehicles and taxis from roads?

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Proper flags for cars

#4

Post by JustAnyone »

Try

Code: Select all

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

User avatar
yusuf8a684
Reactions:

Re: Proper flags for cars

#5

Post 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

User avatar
yusuf8a684
Reactions:

Re: Proper flags for cars

#6

Post by yusuf8a684 »

What is the flag tag for fire engines?

User avatar
yusuf8a684
Reactions:

Re: Proper flags for cars

#7

Post 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

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Proper flags for cars

#8

Post by JustAnyone »

Don't forget the space!

User avatar
yusuf8a684
Reactions:

Re: Proper flags for cars

#9

Post 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 :(

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”