Crynux Posted February 10, 2014 Share Posted February 10, 2014 Hello All, I have a few questions about animal spawning in the game... for a mod I'm working on. Basically; 1. Where do animals get their spawn position set? Is it done in one source file, or independant for each animal? 2. Where does the game get told of when to spawn the animals? Any help with this will be greatly appreciated. I had a look at the source myself, but was unable to make any concrete determination. Thanks in advance,Crynux Link to comment https://forums.kleientertainment.com/forums/topic/31498-a-few-questions-about-animals-in-the-game/ Share on other sites More sharing options...
dontstarver.wiki Posted February 10, 2014 Share Posted February 10, 2014 Hello All, I have a few questions about animal spawning in the game... for a mod I'm working on. Basically; 1. Where do animals get their spawn position set? Is it done in one source file, or independant for each animal? 2. Where does the game get told of when to spawn the animals? Any help with this will be greatly appreciated. I had a look at the source myself, but was unable to make any concrete determination. Thanks in advance,Crynux hey crynux,explain a bit more about your mod. what you try or want and maybe i can help you here. (or pm me)regards Link to comment https://forums.kleientertainment.com/forums/topic/31498-a-few-questions-about-animals-in-the-game/#findComment-414054 Share on other sites More sharing options...
seronis Posted February 10, 2014 Share Posted February 10, 2014 Hounds are controlled by the hounded.lua file in /scripts/components Gobblers are managed by the bush itself Spiders are managed by their nest which is created at world generation or by queens in later game Pigmen/Mermen by their huts created at work generation Rabbits by holes created at world generation (aka, its basically all done at world generation. no respawns) Link to comment https://forums.kleientertainment.com/forums/topic/31498-a-few-questions-about-animals-in-the-game/#findComment-414105 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now