Initial Upload
Initial Upload
This commit is contained in:
17
_module/nss/door_night_lock.nss
Normal file
17
_module/nss/door_night_lock.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
//Put this Onheartbeat of door
|
||||
void main()
|
||||
{
|
||||
|
||||
|
||||
object oTarget = OBJECT_SELF;
|
||||
|
||||
if (GetIsNight()== TRUE)
|
||||
{
|
||||
SetLocked(oTarget, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocked(oTarget, FALSE);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user