Pedlar Decosta Posted October 27, 2017 Share Posted October 27, 2017 (edited) 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 October 27, 2017 by Pedlar Decosta Link to comment Share on other sites More sharing options...
Pedlar Decosta Posted October 27, 2017 Author Share Posted October 27, 2017 I figured it out thanks. The script was not in the root prim and that was around the distance I was getting the problem with. So I used llGetRootPosition() instead. Problem seems to be fixed. I knew it would be something simple that I was missing. Link to comment Share on other sites More sharing options...
Recommended Posts
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