#include "nw_i0_plot"

//Put this OnEnter
void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (GetPLocalInt(oPC, "c42Started")<1)
    {

    SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);

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

    AssignCommand(oTarget, ActionCloseDoor(oTarget));

    oTarget = GetObjectByTag("c42Door");

    DelayCommand(1.0, SetLocked(oTarget, TRUE));

    //oTarget = GetObjectByTag("c42talk2");
    oTarget = GetObjectByTag("loudVoice");
    AssignCommand(oPC, ClearAllActions());
    AssignCommand(oTarget, ActionStartConversation(oPC, "c42talk"));
    }
//SetPLocalInt(oPC, "c42Started", 1);

}
