Modding/Door Locations

From Cosmoteer Wiki
< Modding(Redirected from Door Locations)
Jump to navigation Jump to search

When creating custom parts that should be walkable by Crew, you need to specify where doors may be placed. These locations are defined in the .rules file for your part. Allowed door locations are specified as a list of [x,y] coordinates called AllowedDoorLocations.

Example

Following is an example of how the coordinate system works. Coordinates are counted with x to the right and y downwards from the top left cell of your unrotated part.

Coordinates

AllowedDoorLocations tutorial.png

Source code

In source code the Locations would look like this:

AllowedDoorLocations
[
	[3, -1]
	[-1, 4]
	[5, 4]
	[1, 6]
	[2, 6]
	[3, 6]
]