void main() { object oArea=GetArea(OBJECT_SELF); object oPC=GetPCSpeaker(); object oThing=GetFirstFactionMember(oPC); while (GetIsObjectValid(oThing)) { if (GetArea(oThing)==oArea) { AssignCommand(oThing,JumpToObject(GetWaypointByTag("fr_cave_enter_01b"),FALSE)); } oThing=GetNextFactionMember(oPC); } }