https://lua-api.factorio.com/1.1.35/Lua ... ent_filter
First off, I don't know understand where it should be. I ask this because I don't get any results except via console.
I don't understand set_event_filter (1.1.35)
- ZwerOxotnik
- Fast Inserter
- Posts: 115
- Joined: Tue Dec 19, 2017 6:58 pm
- Contact:
I don't understand set_event_filter (1.1.35)
I make cakes from mods. However, I don't have dough now but you can help me.
Re: I don't understand set_event_filter (1.1.35)
Did you try seomthing likehttps://lua-api.factorio.com/1.1.35/LuaBootstrap.html#LuaBootstrap.set_event_filter wrote:after the actual event registration
Code: Select all
script.on_event(defines.events.on_marked_for_deconstruction, function(ev) game.print(game.table_to_json(ev)) end)
-- Lua code is executed from top to bottom, so this will execute after:
script.set_event_filter(defines.events.on_marked_for_deconstruction, {{filter = "ghost", invert = true}})
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
- ZwerOxotnik
- Fast Inserter
- Posts: 115
- Joined: Tue Dec 19, 2017 6:58 pm
- Contact:
Re: I don't understand set_event_filter (1.1.35)
Yes, events works fine, but I don't see/notice any filters and their effects
I make cakes from mods. However, I don't have dough now but you can help me.
- ZwerOxotnik
- Fast Inserter
- Posts: 115
- Joined: Tue Dec 19, 2017 6:58 pm
- Contact:
Re: I don't understand set_event_filter (1.1.37)
I tried it again on 1.1.37 and it seems works fine except script.get_event_filter shows nil
I make cakes from mods. However, I don't have dough now but you can help me.