Ore deposits not detected with game.findentities

Bugs that are actually features.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Ore deposits not detected with game.findentities

Post by ficolas »

I tried to use game.findentities to increase the resources in a zone, but it didnt work.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Ore deposits not detected with game.findentities

Post by kovarex »

Could you be more specific?
We search for resources this way in two of our scenarios and it works.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Ore deposits not detected with game.findentities

Post by ficolas »

I used the tnt entity to destroy near a ore deposit, and I couldnt destroy it, it destroyed the trees, because I want to make the ore veins drop metal ores, and I doesnt work.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Ore deposits not detected with game.findentities

Post by kovarex »

Note, that the ore doesn't have health, so damage/die won't affect it. (I think it even writes error if you call it on entity without health).
If you want to remove it, you need to use the destroy() method, it can remove anything.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Ore deposits not detected with game.findentities

Post by ficolas »

kovarex wrote:Note, that the ore doesn't have health, so damage/die won't affect it. (I think it even writes error if you call it on entity without health).
If you want to remove it, you need to use the destroy() method, it can remove anything.
Oh sorry, move this to not a bug or delete it
Post Reply

Return to “Not a bug”