Jump to content
Sign in to follow this  
Reynard Baroque

LSL script function suggestion

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

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

Recommended Posts

Not sure where this should properly go, as last time I had a suggest it went into the JIRA. However, here goes...


I would like to see a command that lets a script running in an object attach another object directly to the avatar without having to rezz it in-world. Essentially, I'm looking to combine the functionality of llRezObject(...) followed by that object executing an llAttachToAvatar(...) as part of it's script start-up.


What I'm striving for here is a HUD that rezzes and controls a lightsaber prop. The idea is that the user will receive just a HUD; the HUD will contain the lightsaber. If there was a means to attach the prop directly from the HUD contents to the HUD wearer's attach points, it would allow them to attach and use the lightsaber even in no-rezz areas, and would also mean the wearer wouldn't have to attach anything except the HUD.

Proposed syntax:

llAttachObjectFromContents( string name, vector position, rotation rot, integer attach_point, integer param )

name would be the name of the item to rez and would of necessity be limited to INVENTORY_OBJECT types; if a non-object item in the contents was specified, or the object was missing, the script should chat an error on the DEBUG channel. It should specifically NOT permit the use of UUIDs to rezz the object as there would possibly be copy permission conflicts.

position would be the offset from attach_point.

rot would be the rotation relative to attach_point in quaternion form.

param woud be any parameter desired to pass to the object's on_rez event when it rezzes and attaches, same as in llRezObject().

The command should only be valid to attach objects to the avatar wearing the object containing the script; not to any other avatar, and should require PERMISSION_ATTACH via llRequest Permissions().

Thoughts? Objections?

Share this post


Link to post
Share on other sites

Not a bad idea.  The standard way to beat that problem, as you probably know, is to attach the light saber and then make it transparent when you want it to appear detached.  If you normally have an animation triggered when the saber is attached, simply stop the anim when it goes transparent.

That said, no .... this is not the place to post the suggestion:

1. This is a library.  People come here to post finished scripts for general use, or to look for those finished scripts

2. This is not an appropriate place for a discussion .

3.  Lindens never come here, certainly not to look for ideas for new LSL functions.  To submit a suggestion like this, go to the JIRA.

Share this post


Link to post
Share on other sites

I'll go have a look again, but it seems the current project in the JIRA only allows bug reports; at least, I can't find anything in the drop-down for feature suggestions... as I said, I'll try it again.

Share this post


Link to post
Share on other sites

You just have to identify your submission as a feature suggestion when you write the description out.

Share this post


Link to post
Share on other sites

I made a script that does this back in 2006 or 2007. In fact you could even click the saber from across the room and it will come and fly over to your avatar's hand and attach itself. 

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 2578 days.

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...