PoA_PRC8/_module/nss/securedoorscript.nss

18 lines
326 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//Put this script OnClick or OnFailToOpen
void main()
{
object oPC = GetClickingObject();
if (!GetIsPC(oPC)) return;
DelayCommand(10.0, SetLocked(OBJECT_SELF, FALSE));
DelayCommand(11.0, ActionOpenDoor(OBJECT_SELF));
DelayCommand(40.0, ActionCloseDoor(OBJECT_SELF));
DelayCommand(41.0, SetLocked(OBJECT_SELF, TRUE));
}