[Done] Supply Challenge Scenario Question
Posted: Thu Jun 13, 2019 2:06 am
Hi,
Can someone please explain to me how the chests for the Supply challenge Scenario are created?
I only see this code:
So I assume it's something to do with the fact that it's a Scenario and somehow a starter chest is hard coded?
What would be the best way to re-produce some starting chests that will work with the challenge code?
Thanks.
Can someone please explain to me how the chests for the Supply challenge Scenario are created?
I only see this code:
Code: Select all
global.chests = {}
for k, chest in pairs (game.surfaces[1].find_entities_filtered{name = "red-chest"}) do
chest.minable = false
chest.destructible = false
global.chests[chest.unit_number] = chest
end
What would be the best way to re-produce some starting chests that will work with the challenge code?
Thanks.