Try providing current position as target.pos instead of { pos: target.pos, range: 1 }. I might be wrong but according to docs it seems only destination accepts object like that. Primary position is simple position object.
WhiteTurbine
@WhiteTurbine
2
Posts
784
Profile views
0
Followers
0
Following
Posts made by WhiteTurbine
-
RE: TypeError in PathFinder: a.getRangeTo is not a function
-
RE: raise the 1mb limit on code
I might be unpopular but I agree with Voronoi - I would vote for not increasing limits.
Yes, I am new to this game but I do have some years spent developing and designing various projects and tools. In business people often forget or cannot afford to think about optimization too much. Let's use this game to take the fun back to programming. Imho significant part of the game should be around searching for new and ever-better solutions for solving problems in the most efficient way. It is coding competition after all