This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
crpl:docs:queuemove [2013/11/30 13:29] – added example Clean0nion | crpl:docs:queuemove [2020/05/30 12:12] – Added maximum speed Sanian | ||
---|---|---|---|
Line 4: | Line 4: | ||
^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
- | |X,Y coordinate to move to and the speed| |'' | + | |X, Y, speed| |'' |
=== Description === | === Description === | ||
- | X and Y are map coordinates and the speed is in pixels per second. | + | X and Y are map coordinates and the speed is in pixels per frame (1 second |
- | Queued movements go into a queue and are processed one at a time. | + | Queued movements go into a queue and are processed one at a time. The maximum speed is 12, providing any value higher than 12 will not make it go any faster. |
=== Examples === | === Examples === | ||
- | < | + | < |
- | RandUnitCoords 4 QueueMove</ | + | # Once it has arrived, it picks another random unit and moves there at one pixel per frame. |
+ | RandUnitCoords 4 QueueMove | ||
+ | RandUnitCoords 1 QueueMove</ |