PDA

View Full Version : Getting the Hour of Pregnancy


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.

HugeLunatic
24th Jun 2012, 5:26 PM
Moved to TS3. Would help to receive proper suggestions if posted in the correct game forum. ;)

twallan
24th Jun 2012, 6:39 PM
Here ya go : http://www.modthesims.info/showthread.php?p=3766584

:)

Enirei
25th Jun 2012, 3:16 AM
Moved to TS3. Would help to receive proper suggestions if posted in the correct game forum. ;)

Ack! I thought I was. My bad. Thanks.

Here ya go : http://www.modthesims.info/showthread.php?p=3766584

:)

Sweet! Thanks. I got it fixed.