Replies: 2 (Who?), Viewed: 124 times.
Scholar
Original Poster
#1 Old 21st Nov 2020 at 1:17 PM
Default How to check via script if an expansion is installed or not?
In my Vampire mod I need to disable the check for rain and snow feature if Seasons is not installed because the Vampire Sim gets reset by Error trap in the sunlight if you don't have seasons installed.

How do I do that? It was utils something.

Thank you.

If you like my mods. Consider supporting me on Patreon

Follow me on
Twitter
Instagram
Advertisement
Field Researcher
#2 Old 21st Nov 2020 at 2:39 PM
Yo PuddingFace !

you can check for expansions with the code below

Code:
if (GameUtils.IsInstalled(ProductVersion.EPX))
{
;
}


E: Seasons is EP8 so its ProductVersion.EP8
ref https://www.carls-sims-3-guide.com/expansionpacks.php
Scholar
Original Poster
#3 Old 22nd Nov 2020 at 8:18 AM
Thank you so much

Will try this out now.

If you like my mods. Consider supporting me on Patreon

Follow me on
Twitter
Instagram
Back to top