Skip to content

Instantly share code, notes, and snippets.

@ExtReMLapin
Created November 28, 2016 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ExtReMLapin/9bb2f794e1fcfe9f06e6ed7c497763b2 to your computer and use it in GitHub Desktop.
Save ExtReMLapin/9bb2f794e1fcfe9f06e6ed7c497763b2 to your computer and use it in GitHub Desktop.

You added a house but the doors are not working with the panel ? Get your lua code with the localisation of the house which sould be something like :

houses.list[houseid].boxes = {{ Vector( 4509.2094726563, 13543.0390625, 0 ), Vector( 5829.8266601563, 15176.849609375, 948.96875 )}}

The the vector with the lowest Z ( like Vector(x, y, z)) is this one :

Vector( 5829.8266601563, 15176.849609375, 948.96875 )

So in theory it should be the dirt ... or the lowest point of the room if it's an appartment.

What we're going to do it trying to catch the doors in the 3d box you created with the tool, the problem is the position origin of the door is under the ground so we'll have to reduce z by 5 or 6

Turn your

Vector( 5829.8266601563, 15176.849609375, 948.96875 )

into

Vector( 5829.8266601563, 15176.849609375, 943 )

Still not working ? It means the doors are not just under the ground but you clicked inside the appartment and the doors are on the border so it could be on the box limit or outside it, try clicking on the appartment but from outside, just to be sure you catch everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment