You need to check out . . .

modelUnderLoc()

in the docs. Feed this function a sprite relative mouseLoc, and it will return the model closest to you that lies beneath the cursor.

Use

modelsUnderLoc()

if you need to detect models behind other models. It returns a list of models under the cursor starting with the closest.

Rix