Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.
For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms:
Discord,
Twitter/X,
Facebook.
Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!
I'm currently working on adding scheduled base destruction to my server using this mod https://steamcommunity.com/sharedfiles/filedetails/?id=1601078531
It works great but I would like to modify it so that it works only on specific days of the week. Could someone point me in the right direction
This is the current script from the mod
modded class Construction
{
override bool CanDestroyPart( string part_name )
{
if ( IsPartConstructed( part_name ) && !HasDependentPart( part_name ) )
{
static int tbdhour;
static int tbdminute;
static int tbdsecond;
GetHourMinuteSecondUTC(tbdhour, tbdminute, tbdsecond);
if ((tbdhour >= 18) && (tbdhour <= 23))
{
return true;
}
else
{
return false;
}
}
return false;
}
}