use
Code:
if(!mouse_ent){
//do your sexy thang
}


then if you click on a model it'll be ignore laugh
though if you want something more than that you'll need to set up a basic node storage and work with tiles