Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem related to rezing and ownership

Guilhermo Kyomoon
Registered User
Join date: 21 Apr 2009
Posts: 12
04-21-2009 17:03
Hello everyone, i've been trying to reproduce this situation:
-An avatar touches an object
-The object rezzes another object
-This second object is attached to the avatar HUD

The thing is, using the scripts i got, the only thing i got was:
-An avatar touches an object
-The object rezzes another object
-This second object is atached to the OWNER'S HUD.

How should i repair it? i know the problem is related to the fact of me using the "getOwner" permission thingy, but i really don't know how else could i do that.

Thanks for your time.

The scripts are:
1st object:
default
{
state_entry()
{
llSetText("blablabla", <1.0, 1.0, 1.0>, 1.0);
}

touch(integer total_number)
{
llRezObject("blablabla", llGetPos() + <0.0,0.0,1.0>, <0.0,0.0,0.0>, <0.0,0.0,0.0,1.0>, 0);
}
}

2nd object:
default
{
on_rez(integer start_param)
{
llRequestPermissions( llGetOwner(), PERMISSION_ATTACH );
}

run_time_permissions( integer vBitPermissions )
{
if (PERMISSION_ATTACH & vBitPermissions)
{
llAttachToAvatar( ATTACH_HUD_TOP_LEFT );
}
else
{
llOwnerSay( "blablabli NO GOOD" );
llDie();
}
}

}
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
04-21-2009 17:07
If I understand what you're saying, I think the problem is that scripts that call llAttachToAvatar _always_ attach to their owner. Always.

You can't wear an attachment that doesn't belong to you.
Guilhermo Kyomoon
Registered User
Join date: 21 Apr 2009
Posts: 12
04-21-2009 17:37
And is there other way to get the result im expecting?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
04-21-2009 18:05
From: Guilhermo Kyomoon
And is there other way to get the result im expecting?

Too big of a griefing potential. So unfortunately no. Give the object for the other person to attach or rez it so they can take a copy and then attach.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Guilhermo Kyomoon
Registered User
Join date: 21 Apr 2009
Posts: 12
04-21-2009 19:00
The thing is: im dealing with people that are really new to second life, and it would be a map hud system, to help them move along my island.
They are not used on attaching huds and using inventory.

Isn't there a way around this problem?

Thanks again for your help.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
04-21-2009 19:27
To my mind, you'll have to attack the problem from a different angle, because, as others have said, there's simply no way to do what you want if people are using a non-modified viewer.

Have you considered setting up a large map with tp buttons to points of interest on your island? Or some sort of automated tour?
Guilhermo Kyomoon
Registered User
Join date: 21 Apr 2009
Posts: 12
04-21-2009 19:34
Yeah, i already got a map like the one you described, i just thought offering another teleport option would be a good idea...but thanks anyway :D
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
04-21-2009 20:20
Well, really, if these people are very new to SL, then the "Automatically show newly accepted objects in inventory" box in Preferences should be checked by default. So that's gonna pop up with the item selected..all you'd have to do would be to llInstantMessage them, telling them how to wear the item. This would actually be a very good lesson for someone that new..