//::///////////////////////////////////////////////
//:: Trap door that takes you to a waypoint that
//:: is stored into the Destination local string.
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////

void main()
{

    object oPC = (GetPCSpeaker());
    object oDest = GetObjectByTag("WP_SOUTHLOWER");
    location lDest = GetLocation(oDest);
    object oAnimal = GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION, oPC);
    int iAnimal = GetIsObjectValid(oAnimal);
    object oDominated = GetAssociate(ASSOCIATE_TYPE_DOMINATED, oPC);
    int iDominated = GetIsObjectValid(oDominated);
    object oFamiliar = GetAssociate(ASSOCIATE_TYPE_FAMILIAR, oPC);
    int iFamiliar = GetIsObjectValid(oFamiliar);
    object oHenchman = GetAssociate(ASSOCIATE_TYPE_HENCHMAN, oPC);
    int iHenchman = GetIsObjectValid(oHenchman);
    {
              AssignCommand(oPC, JumpToLocation(lDest));
            if (iAnimal == TRUE)
            {
              AssignCommand( oAnimal, JumpToLocation(lDest));
            }
            if (iDominated == TRUE)
            {
              AssignCommand( oDominated, JumpToLocation(lDest));
            }
            if (iFamiliar == TRUE)
            {
              AssignCommand( oFamiliar, JumpToLocation(lDest));
            }
            if (iHenchman == TRUE)
            {
              AssignCommand( oHenchman, JumpToLocation(lDest));
            }
        }

   }


