void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (!(GetLocalInt(GetFirstPC(), "twistedtrig")== 1))
   return;

AssignCommand(GetObjectByTag("TwistedDoors"),ActionUnlockObject(OBJECT_SELF));
SetLocalInt(GetFirstPC(), "twistedtrig", 2);


}
