User Tools

Site Tools


crpl:docs:getmousecell

This is an old revision of the document!


~~DISCUSSION~~ <- 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)
crpl/docs/getmousecell.1412190170.txt.gz · Last modified: 2025/02/14 14:56 (external edit)