Page 2 of 2
[390]Custom flags
Posted: Wed Dec 13, 2017 12:40
by Lobby
Version 390 will allow you to reference to your own flags by name. To allocate a flag that's called "lobby_newflag you may just write
Code: Select all
"allocate flag":["lobby_newflag"] // "allocate flag":"lobby_newflag would work, too
To use it, write
You should add the definition above to every plugin which uses it (redefinition is therefore explicitly allowed). Just ensure that your flag name is some kind of unique.
⚠There's a limit of 20 custom flags in total.
Re: Cars & Roads: Flags
Posted: Wed Dec 13, 2017 12:48
by Lobby
It's more than you had with user0 etc.

You shouldn't use them anymore.
Re: Cars & Roads: Flags
Posted: Wed Dec 13, 2017 17:50
by Josh
But how can you add special things to the flag?
Re: Cars & Roads: Flags
Posted: Wed Dec 13, 2017 18:07
by Lobby
What do you mean by special things?
Re: Cars & Roads: Flags
Posted: Wed Dec 13, 2017 19:04
by Josh
Things like influences and fun
Re: Cars & Roads: Flags
Posted: Wed Dec 13, 2017 19:12
by Lobby
Interesting idea

Re: Cars & Roads: Flags
Posted: Thu Dec 14, 2017 3:08
by 22Alpha
Yup, I was waiting for it as well haha
Re: Cars & Roads: Flags
Posted: Sun Jun 03, 2018 13:54
by Krepel
So wait, if I'd make a tram plugin, which flags should I use to only allow trams on the rails?
i don't really understand the flags thing
Re: Cars & Roads: Flags
Posted: Fri Jul 27, 2018 15:29
by NEPman
How to prohibit the passage of fire trucks, ambulances and police cars on my way?
Re: Cars & Roads: Flags
Posted: Fri Jul 27, 2018 16:09
by yusuf8a684
NEPman wrote: ↑Fri Jul 27, 2018 15:40
@Lobby[Posts][PM], how to prohibit the passage of fire trucks, ambulances and police cars on my road?
We can't i think
Re: Cars & Roads: Flags
Posted: Fri Jul 27, 2018 23:45
by Lobby
Exactly, fire trucks etc. are designed to be able to drive on pkw, lkw, bus, tractor, military, pedestrian, tram or airport roads. You'd have to define a road that has none of these flags set in order to hinder fire trucks etc. from using it.
Re: Re: Cars & Roads: Flags
Posted: Wed Jun 12, 2019 15:45
by Lobby
Added a listing to all flags included in the game to the first post; Please favor them over own ones if reasonable to share behavior between different plugins.
The trains in the game use
Re: Car & Road Flags
Posted: Mon Oct 28, 2019 0:15
by KINGTUT10101
Is there a flag for emergency vehicles?
Re: Car & Road Flags
Posted: Mon Oct 28, 2019 15:41
by Lobby
Not yet, might be added in the future
