I think we need a couple of new features in the JS API.
Firstly I would like to get an array of coordinates from pathfinding from point A to point B.
Secondly, I would like to have an easy function DROID_MOVE without pathfinding it would be possible to optimize the route, as well as to optimize the army during the battle (each injured units behind to keep a stronger army, or keep to the special formation of the army).
As I understand it, in the moment, each order of each unit still causes pathfinding algorithm, even in the case where it is not needed(at short distances).
And where it is really needed inside the algorithm of the bot, we have no access to it at all.
And third. I think it would be nice to make a function that would order the entire group. Because the loop is inside qtscript seems much slower than if there was a loop inside C++ functions, foreach order unit.
PS before somewhere already heard that there is no access to the pathfinding because it would have greatly slowed down the work of the bot. But pathfinding and so is called every order, even when not needed. And if I had access to an array of pathfinding could be much better optimized code bots, cause once him and then orders without calling pathfinding to follow the coordinates.
PSS So... somthing like:
Code: Select all
getPathfinding(propulsion, x1,y2,x2,y2); //Return array of coorinates
groupOrder(group, order, location); //Cycles trough every units outside JS
droiLightOrder(droid, order, location); //Order without call pathfinding
//and maybe
groupLightOrder(group, order, location); //Cycles trough every units outside JS wihout pathdinfing