Adding Shell Building
Types
Door
| Field | Type | Description | Required |
|---|---|---|---|
| coords | vector3 | coords | true |
| h | number | heading | true |
Shell Building
| Field | Type | Description | Required |
|---|---|---|---|
| shell | number | Shell model | true |
| doors | door[] | Inside door offsets | true |
| coords | vector3 | Static shell coords | false |
| realestate | Real Estate Data | The data required to be listed in the real estate menu | false |
| interactions | function[] | Building interactions | false |
| radius | number | Furniture Editor radius based on coords (default 20) | false |
| onEnter | function | Function to be executed after the player enters the building | false |
| onExit | function | Function to be executed after the player exits the building | false |
Examples
Create
building_name.luainsideno-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
}