Added logic autoPathfind command

This commit is contained in:
Anuken
2023-08-13 11:05:43 -04:00
parent 2b05264093
commit 2f991a85af
6 changed files with 33 additions and 1 deletions

View File

@@ -407,7 +407,7 @@ public class LExecutor{
float x1 = World.unconv(exec.numf(p1)), y1 = World.unconv(exec.numf(p2)), d1 = World.unconv(exec.numf(p3));
switch(type){
case idle -> {
case idle, autoPathfind -> {
ai.control = type;
}
case move, stop, approach, pathfind -> {

View File

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