Which is faster? Arrays or DataTables

You could create arrays in the game instance or the robot or wherever. One for copper, one for iron and so on and add the locations hardcoded there instead of a data table. Then you don’t need to get all actors or loop through the data table. You still need to loop through the specific array to determine which is the nearest location. Hope that helps.