mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-27 14:41:49 +00:00
wpedit md
This commit is contained in:
@ -127,6 +127,10 @@ watchAstarCommand()
|
||||
for (;;)
|
||||
{
|
||||
self waittill("astar");
|
||||
|
||||
if (1)
|
||||
continue;
|
||||
|
||||
self iprintln("Start AStar");
|
||||
self.astar = undefined;
|
||||
astar = spawnStruct();
|
||||
@ -136,7 +140,7 @@ watchAstarCommand()
|
||||
self iprintln("End AStar");
|
||||
astar.goal = self.origin;
|
||||
|
||||
astar.nodes = AStarSearch(astar.start, astar.goal, self.team, false);
|
||||
astar.nodes = AStarSearch(astar.start, astar.goal, undefined, true);
|
||||
self iprintln("AStar size: " + astar.nodes.size);
|
||||
|
||||
self.astar = astar;
|
||||
|
Reference in New Issue
Block a user