/* Script generated by Lilac Soul's NWN Script Generator, v. 1.6 For download info, please visit: http://www.lilacsoul.revility.com */ //Put this OnEnter void main() { object oPC = GetEnteringObject(); if(!GetIsPC(oPC)) return; if(GetLocalInt(oPC,"Trapped")==1) return; object oTarget = GetObjectByTag("RustedDoor"); if(GetIsOpen(oTarget)) { DelayCommand(3.0f,AssignCommand(oTarget, ActionCloseDoor(oTarget))); } DelayCommand(5.0f,SetLocked(oTarget, TRUE)); SetLocalInt(oPC,"Trapped",1); }