/*   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;

object oTarget;
oTarget = GetObjectByTag("c15TrapPorticullis");

AssignCommand(oTarget, ActionCloseDoor(oTarget));

oTarget = GetObjectByTag("c15TrapPorticullis");
  ActionWait(1.0);
SetLocked(oTarget, TRUE);

}
