void main() { object oPC = GetLastUsedBy(); string sNum = GetSubString(GetTag(OBJECT_SELF),12,1); object oWaypoint = GetObjectByTag("PlanarWaypoint"+sNum); location lLoc = GetLocation(oWaypoint); AssignCommand(oPC,ClearAllActions()); AssignCommand(oPC,ActionJumpToLocation(lLoc)); }