UW2_PRC8/_module/nss/herodoorlocks.nss

17 lines
274 B
Plaintext
Raw Permalink Normal View History

2023-09-25 20:24:01 -04:00
//Put this script OnOpen
void main()
{
object oPC = GetLastOpenedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
oTarget = GetObjectByTag("herodoor");
DelayCommand(2.0, AssignCommand(oTarget, ActionCloseDoor(oTarget)));
DelayCommand(2.0, SetLocked(oTarget, TRUE));
}