//::///////////////////////////////////////////////
//:: Script: OnAreaTrasitionClick
//:: at_assoc_follow
//:://////////////////////////////////////////////
/*
For transitions that are within the same area.
Will take the PC and all associates along with
him.
*/
//:://////////////////////////////////////////////
//:: Created By: Andrew AKA Lord Sullivan
//:: Created On: November 8, 2003
//:://////////////////////////////////////////////
void main()
{
object oClicker = GetClickingObject();
object oTarget = GetTransitionTarget(OBJECT_SELF);
location lLoc = GetLocation(oTarget);

AssignCommand(oClicker,JumpToLocation(lLoc));

//Work on the NPC party members.
int n = 1;
while (n < 6)
{
object oAssociate = GetAssociate(n, oClicker);
if (oAssociate != OBJECT_INVALID)
{
AssignCommand(oAssociate, JumpToLocation(lLoc));
}
n++;
}
}
