Posts: 437
Thanks: 5285 in 22 Posts
20 Achievements
That method is simply a helper function for the telemetry that fires whenever a baby is born, so you probably don't want to update that directly.
What you'd want to do instead is create your own listener function that responds to the same event as OnBirth(), which is EventTypeId.kHadBaby. If you don't know how to create event listeners, the pure scripting tutorial
here shows you how; you can just follow that guide and replace "kSimEnteredVacationWorld" with "kHadBaby".
Best of luck with your mod! Script mods may be daunting at first, but after a while they stop being so scary
"The Internet is the first thing that humanity has built that humanity doesn't understand, the largest experiment in anarchy that we have ever had." - Eric Schmidt
If you enjoy the mods I put out, consider supporting me on patreon:
www.patreon.com/Gamefreak130