LoT_PRC8/_module/nss/pgs_door_open.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

33 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name: pgs_door_open
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
OnOpen event for guild doors. This script
will handle the simple process for re-closing
and locking the guild doors after a delay
(can be edited in "inc_gsystem_cnfg" script).
*/
//:://////////////////////////////////////////////
//:: Created By:Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem_cnfg"
void main()
{
//--------------------------------------------
//Check if we should close & lock the door.
//--------------------------------------------
if (PGS_GUILD_DOOR_CLOSE_DELAY == 0.0f)
return;
//--------------------------------------------
//After the delay, close the guild door. No
//need to lock the door again, as it has not
//been unlocked, only opened (the way Bioware
//coded it).
//--------------------------------------------
DelayCommand (PGS_GUILD_DOOR_CLOSE_DELAY, ActionCloseDoor (OBJECT_SELF));
}