Added logic autoPathfind command
This commit is contained in:
@@ -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 -> {
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user