Okay, thanks. I just have one more problem in regards to this issue:
Person is underneath building. This is bad for buildings, but it's good when it comes to checking characters with characters.
This is the good part about it, though:
The person can go behind the building a bit on the right hand side.
Now, I just need to consider the X value of the objects in the family. Here is the code at the moment:
I have put the X value into an instance variable and an image point in the bottom corner of the building (this is the point I want to use to consider the Z order of objects), but I'm not sure how to get the family to consider the X value of all objects inside it. Every attempt I've made seems to not work properly.
Is there a way to get all objects in the family to see if the X value is greater than the building before moving it behind it?