
//Put this script OnClick or OnFailToOpen
void main()

{

object oTarget;
location lTarget;

object oPC = GetClickingObject();

if (!GetIsPC(oPC)) return;

oTarget = GetWaypointByTag("WP_indoc3toindoc4");

lTarget = GetLocation(oTarget);

// Cutscene functions:
BlackScreen(oPC);

// Cutscene functions:
DelayCommand(0.5, FadeFromBlack(oPC, FADE_SPEED_SLOW));

if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;

oTarget=GetFirstFactionMember(oPC, FALSE);

while (GetIsObjectValid(oTarget))
   {
   AssignCommand(oTarget, ClearAllActions());

   AssignCommand(oTarget, ActionJumpToLocation(lTarget));
   oTarget=GetNextFactionMember(oPC, FALSE);
   }

}

