User Tools

Site Tools


crpl:docs:randunitcoords

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
crpl:docs:randunitcoords [2013/11/30 12:57]
Clean0nion added example
crpl:docs:randunitcoords [2020/05/30 20:15] (current)
Sanian fixed typo
Line 4: Line 4:
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| |X, Y coords of a random player unit |''​"-- X1 Y1 ''​|+| |Y, X coords of a random player unit |''​-- Y1 X1 ''​|
  
  
 === Description === === Description ===
-Pushes the x and y coordinate of a randomly chosen player unit. -1,-1 will be pushed if no unit is found.+Pushes the x and y coordinate of a randomly chosen player unit. -1, -1 will be pushed if no unit is found
 + 
 +**Note:** This command will also detect Message Artifacts.
 === Examples === === Examples ===
 +<​code>​RandUnitCoords Swap ->​targetX ->​targetY</​code>​
 <​code>#​ Creates a spore and sends it to a random player unit. <​code>#​ Creates a spore and sends it to a random player unit.
 CurrentCoords RandUnitCoords 1 10 CreateSpore</​code> ​ CurrentCoords RandUnitCoords 1 10 CreateSpore</​code> ​
  
crpl/docs/randunitcoords.1385834240.txt.gz · Last modified: 2014/10/01 15:02 (external edit)