|
Zephyrin Zabelin
Registered User
Join date: 10 May 2007
Posts: 153
|
05-15-2007 04:17
I want my object to say "Hello <name>" when touched instead of "Hello avatar". I have been through that manual several times now and can't find how to get anything but the owner's name. How do I refer to Me or My, or This, in a script?
|
|
Ephyu Reino
Registered User
Join date: 18 Jan 2007
Posts: 16
|
05-15-2007 04:36
To get the name of the person triggering the event, just do "llDetectedName(0)," if I remember correctly.
|
|
Zephyrin Zabelin
Registered User
Join date: 10 May 2007
Posts: 153
|
05-15-2007 05:11
Thanks. I have a feeling I had a basic misunderstanding about these events. I have been coding for The Sims for so long that I am used to some scripts held on an object actually running in the avatar's space. I think I can now see that all script on a SL object runs as the object, not the agent interacting with that option. Not a bad thing really as it enables us to chat etc while being "danced" by an animation sphere 
|