Page 1 of 1

[boskid][1.1.78] using a force_index for surface.find_entities_filtered is an error

Posted: Sat Mar 25, 2023 12:45 am
by Honktown
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"}}

Re: [boskid][1.1.78] using a force_index for surface.find_entities_filtered is an error

Posted: Sun Mar 26, 2023 2:34 pm
by boskid
Thanks for the report. Issue is now fixed for 1.1.79