23 lines
591 B
Plaintext
23 lines
591 B
Plaintext
// pagemsg - Determine which direction to go next
|
|
void main()
|
|
{
|
|
object oMe=OBJECT_SELF;
|
|
object oTarget=GetLocalObject(oMe,"oMsgTarget");
|
|
string sID;
|
|
int nDest=0;
|
|
if (oTarget!=OBJECT_INVALID)
|
|
{ // target exists
|
|
sID=GetLocalString(oTarget,"sTeamID");
|
|
if (sID=="DWF") nDest=14;
|
|
else if (sID=="UNC") nDest=17;
|
|
else if (sID=="UND") nDest=20;
|
|
else if (sID=="SPID") nDest=23;
|
|
} // target exists
|
|
else
|
|
{ // despawn
|
|
DestroyObject(oMe);
|
|
} // despawn
|
|
if (nDest=0) DestroyObject(oMe);
|
|
SetLocalString(oMe,"sGNBDTag",IntToString(nDest));
|
|
}
|