rlcevg / CircuitAI

Spring RTS local native AI
GNU General Public License v2.0
18 stars 19 forks source link

New way to set unit speeds #92

Closed GoogleFrog closed 5 years ago

GoogleFrog commented 5 years ago

You can send CMD_WANTED_SPEED (id 38825) to units to set their maximum speed. The first parameter is the speed, in units of elmos/seconds. The control options are irrelevant. The command is not queued, it is 'global' over the units entire queue until a different maximum speed is set. Send a negative number as the first parameter to remove any speed limits.

rlcevg commented 5 years ago

Applied https://github.com/rlcevg/CircuitAI/commit/569a07c2bab3ae49661e6c56616645cc7e0cc5f7

rlcevg commented 5 years ago

available since 104.0.1-941-gfcc4751