32 lines
809 B
Plaintext
32 lines
809 B
Plaintext
// harv_c_show1 - Show harvest point 2?
|
|
int StartingConditional()
|
|
{
|
|
object oMod=GetModule();
|
|
object oPC=GetPCSpeaker();
|
|
string sID=GetLocalString(oPC,"sTeamID");
|
|
location lLoc=GetLocalLocation(oMod,"lHarvest2_"+sID);
|
|
object oArea=GetAreaFromLocation(lLoc);
|
|
float fX;
|
|
float fY;
|
|
float fZ;
|
|
vector vPos=GetPositionFromLocation(lLoc);
|
|
int nX;
|
|
int nY;
|
|
int nZ;
|
|
string sToken;
|
|
int nNum=2;
|
|
if (oArea!=OBJECT_INVALID)
|
|
{ // area exists
|
|
fX=vPos.x;
|
|
fY=vPos.y;
|
|
fZ=vPos.z;
|
|
nX=FloatToInt(fX);
|
|
nY=FloatToInt(fY);
|
|
nZ=FloatToInt(fZ);
|
|
sToken=GetName(oArea)+"("+IntToString(nX)+","+IntToString(nY)+","+IntToString(nZ)+")";
|
|
SetCustomToken(88000+nNum,sToken);
|
|
return TRUE;
|
|
} // area exists
|
|
return FALSE;
|
|
}
|