Jump to content

Problem with SetRegionPos ?


Pedlar Decosta
 Share

You are about to reply to a thread that has been inactive for 2383 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi,. I am trying to use llSetRegionPos() to move a skybox on a small parcel. I am only changing the z coordinate, however the y coordinate is changing as well by over 2 metres. I can't figure that out because llSetRegionPos() is supposed to fail unless it can move the object to within 0.1 metres of the target.

Any help is appreciated.

 pos =llGetPos();

integer positionz //= user input

         integer hasMoved = llSetRegionPos(<pos.x,pos.y,positionz>);

 if (hasMoved)
        {
            cp = llGetPos();
            llInstantMessage(llGetOwner(),"My new position is now:\n"
                + "http://maps.secondlife.com/secondlife/" + llEscapeURL(llGetRegionName())
                + "/"+(string)llRound(cp.x) + "/"+(string)llRound(cp.y) + "/"+(string)llRound(cp.z) + "/");
        }

Edited by Pedlar Decosta
Link to comment
Share on other sites

  • Pedlar Decosta changed the title to Problem with SetRegionPos ?
You are about to reply to a thread that has been inactive for 2383 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...