Jump to content

Rezzing objects scripting help!


zyf444e668
 Share

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

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

Recommended Posts

Take a good look at that example script again.  See where it says

        vector vec = llGetPos() + < 0.0, 0.0, 5.0>; // 5 meter above this

?  That's the position where you want the new object to rez..  Quite literally, "Here, plus 5.0 meters higher."  If you meant "Here plus 2 meters to the left", you'd write 

        vector vec = llGetPos() + < 0.0, -2.0, 0.0>; // 2 meter to the left of this

And if you wanted to be sure that the new object always rezzed 2.0 meters to the left of your rezzer, regardless of how you turned it, you'd write

        vector vec = llGetPos() + < 0.0, -2.0, 0.0>* llGetRot(); // 2 meter to the left of this, regardless of my rotation.

The only limitation at all is that you can't rez an object more than 10.0 m away from your rezzer.  If you want it to end up there, you have to rez it closer first and then move it.  That's more of a challenge.

  • Like 1
Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...