- rezzed on land
- attached as a HUD
- or worn as attachment and know which part of the body.
Any coding examples or clues would be most appreciated.

These forums are CLOSED. Please visit the new forums HERE
Detecting attachment position for object? |
|
|
BritHawk McMillan
Registered User
Join date: 26 May 2008
Posts: 23
|
07-03-2009 08:17
I was wondering can an object be scripted to know how it was rezzed e.g.
- rezzed on land - attached as a HUD - or worn as attachment and know which part of the body. Any coding examples or clues would be most appreciated. ![]() |
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
07-03-2009 08:35
Try: llGetAttached()
Details here: http://wiki.secondlife.com/wiki/LlGetAttached Try reading the other stuff on that site too....I hear it's useful ![]() |
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
07-03-2009 08:37
You can't get a random object's history. You could script a specific object to create a record of it's own history if you wanted to, though, and then read it later. For example, you could script an on_rez event to do llGetPos() and then save its position in a list for later review. You could script a changed event so that it does llGetAttached() and then store that information too. A HUD is simply another attachment, so you can get that information with llGetAttached too.
_____________________
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 |