Multiple players can loot spawned RefineriesSolved

I added an oil refinery to bandit and more than 1 player can use it at a time. Is there a way I can fix this?

 

Thanks

Is that the behavior of vanilla? For example, the refinery that appears in Outpost, is it only accessible to one player? Sorry I don't really play Rust so I don't know.

I glanced at the BaseOven code (which Refinery uses) and I don't see any feature for what you are describing. The StorageContainer code (which BaseOven extends) does have the capability to allow only one looter per container at a time. Is that what you mean? I'm guessing that to make use of this, the player would have to sit there with the loot panel open to prevent other players from taking their items.

Which version of the refinery are you spawning? If you are spawning the deployed one, try spawning small_refinery_static instead. My thinking is that version will be the same as the ones you see at vanilla monuments, so it should have the behavior you describe. This looks like something that I should add to the DeployableOverrides config so that you can just run maspawn while holding a deployable refinery to spawn a static one.

correct there is a diff between depoyed and static

Thanks for your speedy reply!

 

The refinery at the outpost only allows one user to use the refinery.

 

I am using  "PrefabName": "assets/prefabs/deployable/oil refinery/refinery_small_deployed.prefab"

 

Your suggestion worked! THANKS

Locked automatically