TonyBowlin Posted May 26, 2018 Share Posted May 26, 2018 So want to do this llSetPos(llGetPos()+<0,0,0>); But I have no idea how to llRound it so that its position is set to whole numbers. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted May 26, 2018 Share Posted May 26, 2018 You have to round the three components of the vector separately, something like this default { state_entry() { vector v = <123.45,123.67, 123.89>; v.x = (float)(llRound(v.x)); v.y = (float)(llRound(v.y)); v.z = (float)(llRound(v.z)); llOwnerSay((string)v); } } 1 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