Logic pathfind instruction

This commit is contained in:
Anuken
2023-04-24 23:59:46 -04:00
parent 05f158fd51
commit 583a1c69b6
5 changed files with 23 additions and 3 deletions

View File

@@ -394,7 +394,7 @@ public class LExecutor{
case idle -> {
ai.control = type;
}
case move, stop, approach -> {
case move, stop, approach, pathfind -> {
ai.control = type;
ai.moveX = x1;
ai.moveY = y1;

View File

@@ -5,6 +5,7 @@ public enum LUnitControl{
stop,
move("x", "y"),
approach("x", "y", "radius"),
pathfind("x", "y"),
boost("enable"),
target("x", "y", "shoot"),
targetp("unit", "shoot"),