Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Ned help getting rezed object to attach to avatar

Thrixx Ennui
Registered User
Join date: 20 Apr 2005
Posts: 4
05-03-2005 00:05
Im trying to get a sphere to rez around an avater, attached to the belly location, from the inventory of a worn object via a command.

I can get the sphere to rez, but it won't attach, thus trapping the avatar in the sphere (amusing, but not the desired effect).

No matter what I try I cant get it to work. :(

Thanks for any help!
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
05-03-2005 02:11
Hard to say without seeing the script you are using/i.e. what you are actually doing!

At a guess, I'd say you may be forgetting to first make a call to llRequestPermissions(agent_key, PERMISSION_ATTACH)?

/esc
_____________________
http://slurl.com/secondlife/Together
Phoenix Byrd
Monkeh
Join date: 18 Mar 2005
Posts: 77
05-03-2005 02:28
default
{

on_rez(integer start_param)
{
key owner = llGetOwner();
llRequestPermissions(owner, PERMISSION_ATTACH);
}

run_time_permissions(integer perm)
{
if (perm & PERMISSION_ATTACH)
{
llAttachToAvatar(ATTACH_RHIP);
}
}
}
Thrixx Ennui
Registered User
Join date: 20 Apr 2005
Posts: 4
05-03-2005 03:14
Yay, Phoenix's suggestion worked! However, is there a way to get it to attach without the pop up asking for permission?

Also, now the command to remove the ball is broken.. Im guess ing i need to use the detach command?
Thrixx Ennui
Registered User
Join date: 20 Apr 2005
Posts: 4
05-03-2005 03:23
Addendum - when it detatches, id want it to get deleted or something Not go into the avatars inventory...


thanks!
Phoenix Byrd
Monkeh
Join date: 18 Mar 2005
Posts: 77
05-03-2005 03:31
idk how to make it not ask fist, but anywho, put this script into the object being attached, then the person just gotta right click -> drop and the object will kill itself. Only way I kno howto do it right now.


default
{
state_entry()
{
llSetTimerEvent(10.0);
}
timer()
{
llDie();
}
}
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
05-03-2005 03:37
you can't make self destructing attachments*.

*you can make scripts for them that will make it very difficult.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Thrixx Ennui
Registered User
Join date: 20 Apr 2005
Posts: 4
05-03-2005 04:15
erm.. hmmm... okay... im confused then... So there is no way to remove the ball from around the avatar without taking it or droping it then deleting it?
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
nope
05-05-2005 20:29
No you either have to detach it, which puts it into your inventory, or you have to manually drop it.
Enabran Templar
Capitalist Pig
Join date: 26 Aug 2004
Posts: 4,506
05-07-2005 07:07
Also, the shield you're trying to make won't be able to absorb any bullets since attachments become phantom on attach. ;)
Zeno Concord
To infinity, and beyond!
Join date: 28 Mar 2005
Posts: 51
05-07-2005 10:04
From: Enabran Templar
Also, the shield you're trying to make won't be able to absorb any bullets since attachments become phantom on attach. ;)

Good point. How about if the attachment is a shield generator that creates a new object, the shield, that follows the avatar?
Enabran Templar
Capitalist Pig
Join date: 26 Aug 2004
Posts: 4,506
05-07-2005 10:19
From: Zeno Concord
Good point. How about if the attachment is a shield generator that creates a new object, the shield, that follows the avatar?


Well, in that case, you'd need attach only a single object once. Much easier. :)

There are countless means of shielding and all of them are pretty imperfect (And I should know, I ship a product that has a shield and penetrates other shields ;) ). A shield object that follows the avatar might be a little cumbersome, but I dunno. Script one and we'll test it. :)