PoA_PRC8/_module/nss/door_lock_night.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

33 lines
737 B
Plaintext

//Script Name: door_lock_night
//////////////////////////////////////////
//Created By: Genisys (Guile)
//Created On: 8/19/08
/////////////////////////////////////////
/*
This automatically locks a door after
5 seconds, if it's nighttime, after it's
unlocked, this is used seperately with
the day / night door because it has to
to check the day/night time..
*/
////////////////////////////////////////
void main()
{
object oMe = OBJECT_SELF;
//Only if it's night-time!
if(GetIsNight())
{
//Quickly close and lock the door, so they can't enter!
DelayCommand(0.1, SetLocked(oMe, TRUE));
DelayCommand(0.2, ActionCloseDoor(oMe));
}
//Otherwise just close the door after 15 seconds..
else
{
DelayCommand(15.1, ActionCloseDoor(oMe));
}
}