void main() { PlayVoiceChat(VOICE_CHAT_GOODBYE); object oTarget; // Get the waypoint by tag where the NPC should jump to. oTarget = GetWaypointByTag("WP_HRESPAWN_MARCO"); if (oTarget != OBJECT_INVALID) { // Get the location of the waypoint. location lTarget = GetLocation(oTarget); // Jump the NPC (OBJECT_SELF) to the target location. AssignCommand(OBJECT_SELF, JumpToLocation(lTarget)); } }