#include "inc_x_nwncx"
#include "inc_position"

void main()
{
    object oPC = GetEnteringObject();
    float fAdjustment = 0.35;

    object oVarHoldFound; //This section collects variables from the varhold.
    int v=1;
    int nReceptionReady;

while ((oVarHoldFound = GetNearestObject(OBJECT_TYPE_PLACEABLE, OBJECT_SELF, v)) != OBJECT_INVALID)
    {
        string sVarHoldFoundName = GetName(oVarHoldFound);
        if (sVarHoldFoundName=="Varhold")
        {
            nReceptionReady = GetLocalInt(oVarHoldFound,"ReceptionReady");
        }
        v++;
   }


    if(nReceptionReady>0)
    {
        SetExtraZ(oPC, fAdjustment);
    }
}
