Missing llGetPrimitiveParam: PRIM_LAST_ATTACH_POINT
Tapple Gao
llGetPrimitiveParams([PRIM_LAST_ATTACH_POINT])
should return a list of the form
[<last attach point (integer)>, <last attach position (vector)>, <last attach rotation (rotation)>]
I know there is a hidden primitive parameter like this, because, you can detach a prim, rez it, link it, pick it up, put it down, unlink it, take it, wear it, then it goes back to where it was attached in step 1.
I wrote 1 script a long time ago that would have used this information. It's easy enough to save while attached, if you need it (using
[llGetAttached(), llGetPos(), llGetRot()]
. I just ran into another case where I'd use it, if available. I have a script that walks you through creating a prim in your own name and attaching it to your hud. It's the setup phase of a hud builder kit (I do this so that they are listed as creator, not me). Having this would help in 2 ways:
- I could easily detect if the prim has finished being "set up" by checking its saved attach point
- If this was also settable via llSetPrimitiveParams, I could eliminate the step of "pick me up, then click Attach to HUD > Bottom"
I have more interest in reading than writing this property, but, it's low priority either way.
Log In
Tapple Gao
I was just reminded that you can set this property already with
llAttachToAvatar