you also can do this with particles:

function not_in_house //function of your particle (my.function=not_in_house;)
{
if(content(my.x)==in_solid)
{
my.move=0;
my.function=0;//clear the particle
}
}


- A6pro 6.40.5