PoA_PRC8/_module/nss/bootnonmember2.nss

23 lines
455 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//Created by Genisys 5/28/08
//This script boots any non-partymember out of the party room
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
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));
}
}