Shargast_PRC8/_module/Chapter 1/nss/wp_jump_finius.nss

23 lines
348 B
Plaintext
Raw Normal View History

2024-08-03 14:13:18 -04:00
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("WP_F1");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
oTarget = oPC;
}