Skip to main content

Adding Shell Building

Types


Door

FieldTypeDescriptionRequired
coordsvector3coordstrue
hnumberheadingtrue

Shell Building

FieldTypeDescriptionRequired
shellnumberShell modeltrue
doorsdoor[]Inside door offsetstrue
coordsvector3Static shell coordsfalse
realestateReal Estate DataThe data required to be listed in the real estate menufalse
interactionsfunction[]Building interactionsfalse
radiusnumberFurniture Editor radius based on coords (default 20)false
onEnterfunctionFunction to be executed after the player enters the buildingfalse
onExitfunctionFunction to be executed after the player exits the buildingfalse

Examples


Create building_name.lua inside no-housing/config/shared/buildings/shell

Config.Buildings.Shell.building_name = {
shell = `shell_model`, -- model of the shell
radius = 20.0, -- furniture radius
coords = vector3(0.0, 0.0, 0.0),
doors = { -- inside door offsets
{coords = vector3(-1.4218, -1.9719, 2.9), h = 1.95}
},
realestate = {
label = "Trailer",
price = 15000
},
onEnter = function(ctx)

end,
onExit = function()

end
}