PoA_PRC8/_module/nss/tentteleportspc.nss

26 lines
441 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
location lTarget;
object oTarget;
//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
oTarget = GetWaypointByTag("tentway1");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
SetLocalLocation(oPC, "ls_stored_loc", GetLocation(oPC));
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}