Jump to content

Recommended Posts

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

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

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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...