Jump to content

Robster Rau

Resident
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Robster Rau

  1. I am struggling on a script I am working on.

    The script moves a prim to a location, rezzes an object there, then does a sensor to get the object information.

    Then moves to the next location and repeats the process.

    My problem is, often the sensor returns a no_sensor event due to the delay in rezzing the object.

    however, the script has continued to the next position.

    I have tried putting a llsleep between the rezz and sensor, but I really hate to do it this way. The time it takes for the object to rezz varies, so it is difficult to set a dalay that always works yet does not slow the process down to much.

     

    code sniplet:

    fillslots()
    {
        integer x=0;
        
        do()
        {
            rezzslot(x);
        }
        while(x<10)
    }

    rezzslot( integer i)
    {
        tstr = llGetInventoryName(INVENTORY_OBJECT, 0);
        vector myPos = llGetPos();
        rotation myRot = llGetRot();
        vector rezPos = myPos+llList2Vector(rezzvectors,i)*myRot;
        vector rezVel = relativeVel*myRot;
        rotation rezRot = llEuler2Rot(<0,0,90> * DEG_TO_RAD)*myRot;
        MoveToPos(i) 
        llRezAtRoot(tstr,rezPos,rezVel,rezRot,startParam);
        llSleep(1);
        llSensor(tstr,"",.5,PI);
        llSleep(3);
    }


     

×
×
  • Create New...