Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing an object from attachment

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
08-01-2009 06:48
I have a script that is suppose to rez an object from attachment but for some reason it does not seem to work. If its not attached it works fine. Any ideas.

Thanks
Celty Westwick
Registered User
Join date: 24 Jun 2006
Posts: 145
08-01-2009 07:50
Not without knowing what you did
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
08-01-2009 07:53
So, post the script. :rolleyes:
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
Touch
08-01-2009 08:22
Even a simple script that rezzes an object on touch works when its not attached but does not work once it is.
Tali Rosca
Plywood Whisperer
Join date: 6 Feb 2007
Posts: 767
08-01-2009 08:52
Silently failing to rez usually means you're trying to rez outside of the 10-meter range. Be sure to use the avatar's location as the base for rezzing, and not the attachment's local position on the attachment spot.
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
Thanks Anyway
08-01-2009 10:59
I am attempting to rez the object within less than a meter away.
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
08-01-2009 11:07
From: Rolig Loon
So, post the script. :rolleyes:

Seconded. Or at least the line that does the rezzing...
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!!
- Go here: https://jira.secondlife.com/browse/SVC-3895
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
08-01-2009 11:13
From: Mod Faulkner
I am attempting to rez the object within less than a meter away.

Yes, but you're not succeeding, which suggests that -- whatever you think you've told it to do -- your code thinks you want to rez the object somewhere else that's too far away.

Try something like
CODE
  vector offset = < 1.0, 0.0, 0.0 >;
llRezAtRoot("object", llGetPos()+offset*llGetRot(), ZERO_VECTOR,ZERO_ROTATION,0);