Battledale_PRC8/_module/nss/jw_goody_exit.nss

29 lines
493 B
Plaintext
Raw Normal View History

void main()
{
{
object oObject = GetFirstObjectInArea();
int nPCinArea=FALSE;
location lLoc;
while (GetIsObjectValid(oObject))
{
if (GetIsPC(oObject))
{
nPCinArea = TRUE;
}
oObject=GetNextObjectInArea();
}
if (nPCinArea != TRUE)
{
AssignCommand(GetObjectByTag("jw_george"),ActionMoveToObject(GetObjectByTag("jw_george_wp")));
AssignCommand(GetObjectByTag("jw_george"),ActionDoCommand(SetFacingPoint(GetPosition(GetObjectByTag("jw_goodwin")))));
}
}
}