If you are using Logic Nodes, there is no way to do this without core modifications.If you are using javascript, you can implement the select logic using pick_object function. But be careful, this function renders color scene when you calling it, don't abuse it.