Raidable Shelters (Legacy Thread)

Status
Not open for further replies.
In the latest update (1.7.1) I just pushed, shelters won't spawn if interior entities like boxes fail to spawn, so that issue is now resolved

When you say items don't spawn, are you referring to items inside interior entities? If so, there're three factors that determine item spawning:
  • The entity must be a storage container
  • The items you specified in the Items To Spawn Inside Entity Containers list
  • The Percentage To Fill Container With Items If Present config option
These three determine whether items will spawn inside containers, so double-check them
I have left the config as default.

Is there a chance that nothing spawns inside? (If the shelter spawns)

Thanks for the quick responses
 
I just tested it, and items are spawning fine inside the storage containers within the shelter. Also I just released version 1.7.1, please download it
JSON:
"Interior Entities": [
    {
      "Prefab Name": "assets/prefabs/deployable/woodenbox/woodbox_deployed.prefab",
      "Skin Ids": [
        0
      ],
      "Spawn Chance": 50,
      "Minimum Number To Spawn": 1,
      "Maximum Number To Spawn": 3,
      "Percentage To Fill Container With Items If Present": 20
    },
    {
      "Prefab Name": "assets/prefabs/deployable/furnace/furnace.prefab",
      "Skin Ids": [
        0
      ],
      "Spawn Chance": 50,
      "Minimum Number To Spawn": 1,
      "Maximum Number To Spawn": 1,
      "Percentage To Fill Container With Items If Present": 0

Do i alter the percentage of fill container (woodenbox 20 but the furnace is 0 as default)
 
Do i alter the percentage of fill container (woodenbox 20 but the furnace is 0 as default)
Percentage To Fill Container With Items If Present determines how much of the entity's storage to fill. For example, a small storage container has 18 slots. A percentage of 20% means 3.6 slots (rounded up to 4), so the plugin will try to spawn 4 items inside. A percentage of 100% means all 18 slots will be filled
 
Percentage To Fill Container With Items If Present determines how much of the entity's storage to fill. For example, a small storage container has 18 slots. A percentage of 20% means 3.6 slots (rounded up to 4), so the plugin will try to spawn 4 items inside. A percentage of 100% means all 18 slots will be filled
thank u very much, i can now understand how this now works and yes i have downloaded the latest version (great plugin)
 
Status
Not open for further replies.
Back
Top
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Make sure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart