on_force_technology, on_force_chunck_reached

Post Reply
Angamara
Inserter
Inserter
Posts: 39
Joined: Mon Oct 30, 2017 3:52 pm
Contact:

on_force_technology, on_force_chunck_reached

Post by Angamara »

I - on_force_technology
Called when a force ends a technology

Contains
force :: LuaForce
technology :: LuaTechnology


Why ?
Allows event based on technology.



II - on_force_chunck_reached
Called when a force reach a chunk

Contains
force :: LuaForce
area :: BoundingBox: Area of the chunk
surface :: LuaSurface: The surface the chunk is on
entity :: LuaEntity: The entity



Why ?
Allows event based on chunks.
Last edited by Angamara on Thu Dec 07, 2017 7:32 pm, edited 2 times in total.

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

Re: on_force_technology, on_force_chunck_reached

Post by Bilka »

the first is http://lua-api.factorio.com/latest/even ... h_finished , the second might be http://lua-api.factorio.com/latest/even ... or_scanned depending on what you mean with "reached"
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Angamara
Inserter
Inserter
Posts: 39
Joined: Mon Oct 30, 2017 3:52 pm
Contact:

Re: on_force_technology, on_force_chunck_reached

Post by Angamara »

Ho yes, for the first. I am blind. Thanks.

For the second, it's when characters or radar or anithing in this force remove the fog on chunk

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

Re: on_force_technology, on_force_chunck_reached

Post by Rseding91 »

Ok, I added on_chunk_charted for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”