Enirei
24th Jun 2012, 4:25 PM
I created a very simple pregnancy check mod - click on sim, if they're pregnant the interaction labeled "Pregnant" appears. I wanted to expand it some by having a message that shows what hour of pregnancy the target sim is in.
According to the Sims3.Gameplay dll, there is a variable mHourOfPregnancy that is protected within the Pregnancy class. The retired Kolipoki's Statue of Life mod somehow accesses it to read it. I've tried copying the code but I receive the "inaccessible due to its protection level" error.
Does anyone have any ideas on how I could read it? I just want to read the value, not alter it.
Thanks.
According to the Sims3.Gameplay dll, there is a variable mHourOfPregnancy that is protected within the Pregnancy class. The retired Kolipoki's Statue of Life mod somehow accesses it to read it. I've tried copying the code but I receive the "inaccessible due to its protection level" error.
Does anyone have any ideas on how I could read it? I just want to read the value, not alter it.
Thanks.