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