Jump to content
sale $39.99  $31.99

1 Screenshot

  • 2,548
  • 34
  • 9.57 kB

About LootCreate

Facepunch generated loot containers change on spawn, sometimes it's a Military crate, sometimes elite, sometimes normal.
RustEdit however does not. It will only spawn the crates/barrel you define.

Heres where LootCreate comes in, Two simple commands to place either a crate or a barrel and away you go.

Containers are selected randomly from a list in the config and a timer defines the respawn time. (default 2-8 mins)

Containers are stored in the data file which is cleared on wipe.

Permission
LootCreate.admin << required to use commands

Commands

/PlaceCrate << will place a crate where the player is standing
/RemoveCrate << Removes the crate you are looking at (best if you stand on the crate and look down at it)
/PlaceBarrel << will place a barrel where the player is standing
/RemoveBarrel << Removes the barrel you are looking at (best if you stand on the barrel and look down at it)

Configuration

{
  "Crate Prefab List": [
    "assets/bundled/prefabs/radtown/crate_basic.prefab",
    "assets/bundled/prefabs/radtown/crate_elite.prefab",
    "assets/bundled/prefabs/radtown/crate_normal.prefab",
    "assets/bundled/prefabs/radtown/crate_normal_2.prefab",
    "assets/bundled/prefabs/radtown/crate_tools.prefab"
  ],
  "Barrel Prefab List": [
    "assets/bundled/prefabs/autospawn/resource/loot/loot-barrel-1.prefab",
    "assets/bundled/prefabs/autospawn/resource/loot/loot-barrel-2.prefab",
    "assets/bundled/prefabs/radtown/oil_barrel.prefab",
    "assets/prefabs/resource/diesel barrel/diesel_barrel_world.prefab"
  ],
  "Respawn timer upper": 480.0,
  "Respawn timer lower": 120.0
}

Pretty self explanatory, a list of Barrel Prefabs, a list of Crate Prefabs and two numbers that the timer is triggered between.

Data
The crate and barrel information are save in the LootCreate.json datafile.
Deleting this file will clear all placed containers.

This is triggered to wipe on new save. Meaning if you wipe the server save it will clear the data.


*IF YOU SETUP THE LOOT AND THEN WIPE THE SERVER BEFORE GOING LIVE MAKE SURE YOU BACKUP THIS DATA FILE OR ALL YOUR HARD WORK WILL BE UNDONE*
 

  • Like 2

User Feedback

317.5k

Downloads

Total number of downloads.

1.6k

Customers

Total customers served.

20.5k

Files Sold

Total number of files sold.

319.6k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.