User Tools

Site Tools


crpl:docs:queuemove

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
crpl:docs:queuemove [2013/01/14 13:58] – created chanicrpl:docs:queuemove [2020/05/30 15:35] – Maximum speed isn't a thing nevermind Sanian
Line 1: Line 1:
-TODO+~~DISCUSSION~~ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#movement_commands|Movement Commands]] 
 +=====  QueueMove  ===== 
 + 
 +^Arguments^Result^Notation^ 
 +|X, Y, speed| |''x1 y1 n1 -- ''
 + 
 + 
 +=== Description === 
 +X and Y are map coordinates and the speed is in pixels per frame (1 second = 30 frames).  
 +Queued movements go into a queue and are processed one at a time.  
 +=== Examples === 
 +<code prpl># Picks a random unit then goes there at 4 pixels per frame.  
 +# Once it has arrived, it picks another random unit and moves there at one pixel per frame. 
 +RandUnitCoords 4 QueueMove 
 +RandUnitCoords 1 QueueMove</code> 
crpl/docs/queuemove.txt · Last modified: 2021/02/05 11:43 by Karsten75