void main() { object oPC = GetLastUsedBy(); object oTarget = GetWaypointByTag("FehnDock"); //or whatever the tag is for your destination waypoint AssignCommand(oPC, JumpToObject(oTarget)); }