surface_index in on_robot_built_tile

Post Reply
Melfish
Inserter
Inserter
Posts: 42
Joined: Mon Nov 17, 2014 1:20 pm
Contact:

surface_index in on_robot_built_tile

Post by Melfish »

Dear Devs,

The current on_robot_built_tile does not contain the surface index, which the similar player event does have.
While the index may be available through the robot as it is on the correct surface, this might cost some computation and add complexity for scripting.

Would it be hard to expose the surface_index in the on_robot_built_tile event?

Bilka
Factorio Staff
Factorio Staff
Posts: 3130
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: surface_index in on_robot_built_tile

Post by Bilka »

Okay, added in the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Melfish
Inserter
Inserter
Posts: 42
Joined: Mon Nov 17, 2014 1:20 pm
Contact:

Re: surface_index in on_robot_built_tile

Post by Melfish »

Is it possible for on_robot_mined_tile to get the same treatment?
The surface index seems to be missing there as well...

Bilka
Factorio Staff
Factorio Staff
Posts: 3130
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: surface_index in on_robot_built_tile

Post by Bilka »

Okay, added in the next version.
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 “Implemented mod requests”