23 lines
455 B
Plaintext
23 lines
455 B
Plaintext
|
//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));
|
||
|
}
|
||
|
}
|