Download

Need some help with eggs and baby's

Hello,

For my mod I want to add an option to get a baby while playing as dino. I looked in the files to find out which files take care of the egg and baby process.
I found the files:
DroppedItemGeneric_FertilizedEgg
PrimalItemConsumable_Egg_<Dino name>_Fertilized

I noticed that if you mate 2 dino the DroppedItemGeneric_FertilizedEgg blueprint is spawned, but it got the shape of an egg (in the Components section of the blueprint it is a dropped package). So it seems the DroppedItemGeneric_FertilizedEgg uses the PrimalItemConsumable_Egg_<Dino name>_Fertilized to get all the data of the egg and baby.

How do you manually spawn an egg of for example a raptor? If you spawn a DroppedItemGeneric_FertilizedEgg, how does it get the data of the other file?

I also have some other questions:

  1. How is does the mammal system works?
  2. How do you get the mating progress of a dino? I found a variable called ‘Female Mating Time’ is this the mating progress and at which mating time is the egg laid?
  3. I there a way to ride a baby? You can ride adult dino’s without saddle by setting ‘Rider don’t require saddle’ to true, but this doesn’t seem to affect baby’s.

Thank you very much for answering all questions and a happy new year!

Someone who has experience with this?

Could some Dev help me? Maybe it is an idea to set up a tutorial about this, because I think not many people know how the egg system works.

My assumption after perusing is that in your inventory it is a PrimalItemConsumable_Egg and when you choose to drop it, a DroppedItemGeneric_FertilizedEgg is created and the values are set from the item you attempted to drop before removing the item.

Check out the “Dropped Item Template Override” from the PrimalItemConsumable_Egg_<name>_Fertilized and see if that’ll let you do something with it.

Yes, you are right! If you add it to your inventory and then drop it, the egg (DroppedItemGeneric_FertilizedEgg) is spawned and with right shape and color.

I will do some more research with the eggs.