You can structurize it like this (basic);
Quote:
HouseId | HouseMesh | Owner
|
-Where HouseId simply gets assigned by an increasing counter,
-HouseMesh stands for the corresponding map (Different house types have different map id's but you knew that of course),
-Owner which stands for the person who is in possession of the house described by player id or character name perhaps.
As for seperating people from being in each other's houses;
Quote:
Player A would be in map {HouseId} but actually really in {HouseMesh}.
|
When {HouseId} is actually used to define his MapId to the server, the {HouseMesh} is used to notifiy the client of his actual location.
I suck at explaining so I hope this made it clear to you.