PoA_PRC8/_module/nss/membercheck2.nss

20 lines
335 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oPC = GetLastOpenedBy();
object oTarget;
location lTarget;
if(!GetIsPC(oPC)) return;
if (GetLocalInt(oPC, "IMemberB")<= 0)
{
oTarget = GetWaypointByTag("home");
lTarget = GetLocation(oTarget);
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}
}