Different optional parameters for moveTo() and findPathTo()
-
So, i'm currently reorganizing my pathfinding and ran into this issue:
moveTo(target, [opts])
moveTo(x, y, [opts])Both can have optional parameters, like an avoid array, but findPathTo:
findPathTo(x,y)
findPathTo(target, [opts])Can not.. why? Why shouldn't I be able to add parameters to the x,y as target? Its an easy workaround, but I didn't notice this until now, as my creeps just walked up to source keepers.
-
Thanks, this has been added in today's changelog.
-
I noticed, thank you