User Tools

Site Tools


crpl:docs:randunitcoords

~~DISCUSSION~~ <- CRPL reference <- Unit Commands

RandUnitCoords

ArgumentsResultNotation
Y, X coords of a random player unit – Y1 X1

Description

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

RandUnitCoords Swap ->targetX ->targetY
# Creates a spore and sends it to a random player unit.
CurrentCoords RandUnitCoords 1 10 CreateSpore
crpl/docs/randunitcoords.txt · Last modified: 2020/05/30 20:15 by Sanian