Jump to content

Wang Novelli

Resident
  • Posts

    34
  • Joined

  • Last visited

Posts posted by Wang Novelli

  1. thx,You are too great

    vector myPos = llGetPos();
    rotation myRot = llGetRot();

    vector rezPos = myPos+relativePosOffset*myRot;
    vector rezVel = relativeVel*myRot;
    rotation rezRot = relativeRot*myRot;

    llRezAtRoot(llGetInventoryName(INVENTORY_OBJECT, 0), rezPos, rezVel, rezRot, startParam);

  2. THX~~BUT I Don't understand, when i put them in touch_start ,it can be Rez. the same script

     

     touch_start(integer num_detected)
    {
    vector myPos = llGetLocalPos();
    rotation myRot = llGetLocalRot();
    vector rezPos = myPos+relativePosOffset*myRot;
    vector rezVel = relativeVel*myRot;
    rotation rezRot = relativeRot*myRot;
    llRezObject(llGetInventoryName(INVENTORY_OBJECT, 0), rezPos, rezVel, rezRot, startParam); 
    }


     

  3. somebody help me ,i want to In the collision llRezObject a object. i try it,but no llRezObject,i dont know why?

     

    collision_start(integer num_detected)
    {
    vector myPos = llGetLocalPos();
    rotation myRot = llGetLocalRot();
    vector rezPos = myPos+relativePosOffset*myRot;
    vector rezVel = relativeVel*myRot;
    rotation rezRot = relativeRot*myRot;
    llRezObject(llGetInventoryName(INVENTORY_OBJECT, 0), rezPos, rezVel, rezRot, startParam);
    }

    collision(integer num_detected)
    {

     

    vector myPos = llGetLocalPos();
    rotation myRot = llGetLocalRot();
    vector rezPos = myPos+relativePosOffset*myRot;
    vector rezVel = relativeVel*myRot;
    rotation rezRot = relativeRot*myRot;
    llRezObject(llGetInventoryName(INVENTORY_OBJECT, 0), rezPos, rezVel, rezRot, startParam); 

     

    }

    These are not

     

     

  4. vector YuanShiPos;rotation YuanShiRot;vector NewPos;rotation NewRot;list temp;list temp2;default{changed (integer change)    {         if (change & CHANGED_LINK)        {             key av = llAvatarOnSitTarget();            if (av != NULL_KEY)            {                              temp = llGetLinkPrimitiveParams(llGetNumberOfPrims(),[PRIM_POS_LOCAL,PRIM_ROT_LOCAL]);                    YuanShiPos = llList2Vector(temp,0);                    YuanShiRot = llList2Rot(temp,1);                    llOwnerSay((string)YuanShiPos+(string)YuanShiRot);        }     }               } touch_start(integer total_number)//When I after rotation and position    {  temp2 = llGetLinkPrimitiveParams(llGetNumberOfPrims(),[PRIM_POS_LOCAL,PRIM_ROT_LOCAL]);                    NewPos = llList2Vector(temp2,0);                    NewRot = llList2Rot(temp2,1);                    llOwnerSay((string)NewPos+(string)NewRot);}}

     but I get the same result

  5. Hi~Rolig, 

    when the avatar sits down, save its local position and rotation and reassign those to the dummy sit target.  

    you mean is save the object position  ? or avatar position ?

    iknow how to save the object position and rotation, but i don't know how to save the avatar position and rotation. 

  6. It's A little bit of a problem

    vector LastPos;
    rotation LastRot;

     

    vector NowPos;
    rotation NowRot;

     

    LastPos = llGetLinkPrimitiveParams(llGetNumberOfPrims(),[PRIM_POS_LOCA]);

    LastRot = llGetLinkPrimitiveParams(llGetNumberOfPrims(),[PRIM_ROT_LOCA]);

     

    I want to know now before coordinates and the coordinates of the poor

     

     

     

    X=NowPos-LastPos?

    Y=NowRot-LastRot?

     

  7. i try it  like this

    AScript:

    llRegionSay(-12345,animation_name);
    llRegionSay(-12345,(string)llGetPos());
    llRegionSay(-12345,(string)llGetRot());

     

    BScript:

    List MyList;

    listen(integer channel, string name, key id, string message)
    {
    MyList = MyList+[message]; 
    }

    Data can be sent in the past, but the result format is wrong

×
×
  • Create New...