I'm messing about with some stuff and got stumped with this.
I'm testing with a plugin outputting the Wolf count using `Wolf.Population` but I can't seem to figure out how to get the current population ( 10 ) and not ( 2 ).
Getting current population count?
Discussion in 'Rust Development' started by Mr_Jeff, Aug 4, 2018.
-
I believe the population is per km²
-
You could write a mini plugin that gets all game objects then filters them by prefab name or BaseAnimalNPC and return their counts.
-
usually i set all my animal population manually in the server.cfg file so that when the server loads for the first time it uses my parameters
-
You can get list of all objects by class
Code:UnityEngine.Object.FindObjectsOfType<>()