Entities that have nothing else to do will currently head home (ultimately, they will choose between home and work depending on the time of day). However, if their home is destroyed en-route, they will sit around and do nothing. There are various aspects to solving this:
Homeless entities should offer their occupancy to the matchmaker, in case there are other homes that need occupants. They should first offer occupancy to local homes, but then offer occupancy globally (this will have the effect of making people leave the city if there are no homes available).
If there are no homes available in the world as a whole, homeless entities should wander round the city (/ go to their workplace during the day if they have one). If there are no homes available for a significant period of time, they should ultimately head for a purger (the opposite of a spawner).
Note: This is not a desirable social model in the real world.
Entities that have nothing else to do will currently head home (ultimately, they will choose between home and work depending on the time of day). However, if their home is destroyed en-route, they will sit around and do nothing. There are various aspects to solving this:
Note: This is not a desirable social model in the real world.