Changed folder name.
Changed folder name.
This commit is contained in:
32
_module/nss/door_lock_night.nss
Normal file
32
_module/nss/door_lock_night.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
//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));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user