Im looking for a way to get a list of all the possible loots spawn points (barrels, crates ...) arround roads & 'towns' so I can manually spawn loots. I cannot search through existing loot as I set all resources spawning to 0 in the server configuration and this is a requisite for my plugin.
If anyone has a suggestion on how to list those spawn points it would save me quite some research time.
Solved Get a list of allowed Loot Spawn Points ?
Discussion in 'Rust Development' started by Yatta, Jul 16, 2016.
-
Found a way. Its somewhat dirty but it works.
- I delete all LootContainers.
- For each SpawnGroups :
- I .Fill() the spawn group, filling all possible loot positions.
- I get the list of possible prefabs for those positions from SpawnGroup.prefabs.
- I fill my own list with each position for each prefab.
- I delete spawned objects
So basically I spawn everything, take note, and destroy everything, then do my own stuff.
If someone has a better way, im interested
