//:://///////////////////////////////////////////// //:: Mark "Levian Del'Orr" Fritzlen //:: move_to_location.nss //:: //::////////////////////////////////////////////// /* Simple script to move a character from one location to another. The location you move them to is NewSpawnPt. This is currently designed to be called from within a conversation hence oTarget gets assigned via the GetPCSpeaker() function. */ //::////////////////////////////////////////////// //:: Created By: Mark "Levian Del'Orr" Fritzlen //:: Created On: 06/20/02 //::////////////////////////////////////////////// void main() { //Move individual to new location location lNewLocation = GetLocation(GetObjectByTag("WP_gustillo2")); object oTarget; //Since the script is called from a conversation //determine who is moved by calling the GetPCSpeaker function oTarget = GetPCSpeaker(); if (GetIsObjectValid(oTarget) == TRUE){ AssignCommand(oTarget,ActionJumpToLocation(lNewLocation)); } else if (GetIsObjectValid(oTarget) == FALSE) { SpeakString("Problem here"); } }