// onclick_teleport void main() { object oPC=GetLastUsedBy(); string sTag=GetTag(OBJECT_SELF); object oWP=GetWaypointByTag(sTag); AssignCommand(oPC,ClearAllActions(TRUE)); AssignCommand(oPC,JumpToObject(oWP)); }