void main()
{

object oPC = GetEnteringObject();

object oCurtain = GetNearestObjectByTag("CurtainConvo");

if (!GetIsPC(oPC)) return;

object oTarget = GetNearestObjectByTag("WP_Curtain1");

location lTarget = GetLocation(oTarget);

SetLocalInt(oPC, "CurtainSide", 1);

AssignCommand(oPC, ClearAllActions());

AssignCommand(oPC, ActionJumpToLocation(lTarget));

DelayCommand(0.5, AssignCommand(oPC, ActionStartConversation(oCurtain)));

}

