Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Scholar
Original Poster
#1 Old 21st Nov 2020 at 12: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
Check out my website for updates on my mods and other work PuddingFace.wixsite.com
Check out my Youtube channel for tutorials(modding tutorials) and other content Youtube

Follow me on Twitter Instagram Pinterest Tumblr
Advertisement
Space Pony
#2 Old 21st Nov 2020 at 1: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 7:18 AM
Thank you so much

Will try this out now.

If you like my mods. Consider supporting me on Patreon
Check out my website for updates on my mods and other work PuddingFace.wixsite.com
Check out my Youtube channel for tutorials(modding tutorials) and other content Youtube

Follow me on Twitter Instagram Pinterest Tumblr
Back to top