<- CRPL reference <- Input Commands

GetMouseCell

ArgumentsResultNotation
X and Y game cell coordinates of mouse – i1 i2

Description

Pushes the X then the Y game cell coordinates of the mouse to the stack. 0,0 is located in the UPPER LEFT of the game map with positive X going right and positive Y going down.

Examples

#Create Creeper where the mouse is
GetMouseCell ->y ->x
SetCreeper(<-x <-y 10)