Welcome to
Mod The Sims
Online: 1402
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 2 (Who?), Viewed: 180 times.
Search this Thread
Old 21st Nov 2020, 1:17 PM DefaultHow to check via script if an expansion is installed or not? #1
PuddingFace
Original Poster

Scholar

Join Date: Aug 2014
Posts: 1,065
Thanks: 1565 in 30 Posts
9 Achievements


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
Old 21st Nov 2020, 2:39 PM #2
Battery
Field Researcher

Join Date: Dec 2008
Posts: 385
Thanks: 827 in 5 Posts
8 Achievements


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
Old 22nd Nov 2020, 8:18 AM #3
PuddingFace
Original Poster

Scholar

Join Date: Aug 2014
Posts: 1,065
Thanks: 1565 in 30 Posts
9 Achievements


Thank you so much

Will try this out now.

If you like my mods. Consider supporting me on Patreon

Follow me on
Twitter
Instagram
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.