Table Support for script.set_event_filter

Things that we aren't going to implement
Post Reply
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 339
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Table Support for script.set_event_filter

Post by LuziferSenpai »

Hey,

could we pls get table support, like we have in script.on_event, for script.set_event_filter?

Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Rseding91
Factorio Staff
Factorio Staff
Posts: 13242
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Table Support for script.set_event_filter

Post by Rseding91 »

Why?
If you want to get ahold of me I'm almost always on Discord.

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 339
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: Table Support for script.set_event_filter

Post by LuziferSenpai »

So we can apply the filter to multiple events?

Same goes with script.on_event.

When you have a table full with event ids, you cant apply a filter to all of them ...
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Rseding91
Factorio Staff
Factorio Staff
Posts: 13242
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Table Support for script.set_event_filter

Post by Rseding91 »

Not all events can be filtered the same way. Additionally you can just call the function multiple times with your filters if you want to set multiple events.

Adding in the extra code to do multiple is just extra complexity that doesn't need to exist.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”