Add resource_searching_offset to LuaEntityPrototype

Things that already exist in the current mod API
robot256
Smart Inserter
Smart Inserter
Posts: 1300
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Add resource_searching_offset to LuaEntityPrototype

Post by robot256 »

It looks like resource_searching_offset is not accessible from LuaEntityPrototype. Can you please add read access to it?
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Bilka
Factorio Staff
Factorio Staff
Posts: 3671
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Add resource_searching_offset to LuaEntityPrototype

Post by Bilka »

I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
robot256
Smart Inserter
Smart Inserter
Posts: 1300
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Add resource_searching_offset to LuaEntityPrototype

Post by robot256 »

Okay, thanks! And just to be clear, does the offset change the actual area that the mining drill extracts resources from, or does it only change where the mining area visualization is drawn?
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Bilka
Factorio Staff
Factorio Staff
Posts: 3671
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Add resource_searching_offset to LuaEntityPrototype

Post by Bilka »

It changes the actual area. You can also read it runtime via LuaEntity::mining_area.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Already exists”