Page 1 of 1

[2.0] How to get filters from asteroid-collector

Posted: Tue Dec 03, 2024 5:56 pm
by gangerM
Hello,

I would like to get/set the active filter from an asteroid-collector however I cannot find the function, what I tried:

Code: Select all

Entity.filter_slot_count -- always 0
Entity.get_filter(1) -- nil
Entity.mining_drill_filter_mode -- errors, not a mining drill
Entity.loader_filter_mode -- errors, not a loader
Entity.inserter_filter_mode -- errors, not an inserter
Entity.get_requester_point() -- nil
Can you help me with the call I need for this? I am probably looking over it, but I really can't find it.

Kind regards,
Maarten

Re: [2.0] How to get filters from asteroid-collector

Posted: Thu Dec 05, 2024 5:29 pm
by gangerM
Can someone please help me with this?
I really cannot figure out how to get it, I also tried the following:
- going through the output inventory, doesn't work.
- Looking in control behavior and then logistic conditions, also doesn't work.

If you think it might not be possible (yet), please also let me know.