[boskid][1.1.78] using a force_index for surface.find_entities_filtered is an error
Posted: Sat Mar 25, 2023 12:45 am
Subject says it all: using a force_index for surface.find_entities_filtered is an error: "bad argument #3 of 3 to 'find_entities_filtered' (string expected, got number)"
These do not work:
surface.find_entities_filtered{force = 3}
surface.find_entities_filtered{force = {player.force, 3}}
These work:
entity.force = 3
surface.find_entities_filtered{force = "neutral"}
surface.find_entities_filtered{force = {player.force, "neutral"}}
These do not work:
surface.find_entities_filtered{force = 3}
surface.find_entities_filtered{force = {player.force, 3}}
These work:
entity.force = 3
surface.find_entities_filtered{force = "neutral"}
surface.find_entities_filtered{force = {player.force, "neutral"}}