Skip to content

Commit

Permalink
Add autoPathfind() (#113)
Browse files Browse the repository at this point in the history
* Add autoPathfind() function

* Add autoPathfind to FUNCTIONS_V7A.markdown
  • Loading branch information
limonovthesecond2 authored Jan 8, 2024
1 parent 3845109 commit e5806b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/syntax/FUNCTIONS_V7A.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Control the currently bound unit.
|`stop()`|`ucontrol stop 0 0 0 0 0`|
|`move(x, y)`|`ucontrol move x y 0 0 0`|
|`approach(x, y, radius)`|`ucontrol approach x y radius 0 0`|
|`autoPathfind()`|`ucontrol autoPathfind 0 0 0 0 0`|
|`pathfind(x, y)`|`ucontrol pathfind x y 0 0 0`|
|`boost(enable)`|`ucontrol boost enable 0 0 0 0`|
|`target(x, y, shoot)`|`ucontrol target x y shoot 0 0`|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ private List<OpcodeVariant> initialize() {
add(list, V6, V7A, S, FUNC, Opcode.UCONTROL, uctrl("stop"));
add(list, V6, V7A, S, FUNC, Opcode.UCONTROL, uctrl("move"), in("x"), in("y"));
add(list, V6, V7A, S, FUNC, Opcode.UCONTROL, uctrl("approach"), in("x"), in("y"), in("radius"));
add(list, V7, V7A, S, FUNC, Opcode.UCONTROL, uctrl("autoPathfind"));
add(list, V7, V7A, S, FUNC, Opcode.UCONTROL, uctrl("pathfind"), in("x"), in("y"));
add(list, V6, V7A, S, FUNC, Opcode.UCONTROL, uctrl("boost"), in("enable"));
add(list, V6, V6, S, FUNC, Opcode.UCONTROL, uctrl("pathfind"));
Expand Down

0 comments on commit e5806b8

Please sign in to comment.