How i get animals list from game in my plugin?
Solved Getting list of animals?
Discussion in 'Rust Development' started by mr.Varzhak, Nov 16, 2015.
-
Wulf Community Admin
Are you wanting spawned animals, animal names, animal prefabs?
-
-
Wulf Community Admin
Code:foreach (var str in GameManifest.Get().pooledStrings) { if (!str.str.StartsWith("assets/bundled/prefabs/autospawn/animals/")) continue; var animal = str.str.Substring(str.str.LastIndexOf("/", StringComparison.Ordinal) + 1).Replace(".prefab", ""); Puts(animal); }
-
Error while compiling: ... error CS0117: `GameManifest' does not contain a definition for `Get'
-
Wulf Community Admin
-
Code:FileStorage.server.cache