|
Markino Oh
Registered User
Join date: 3 Sep 2007
Posts: 4
|
09-03-2007 06:30
Is possible to make speak an avatar using a script?
M.
|
|
Cathy Niekerk
Registered User
Join date: 3 Sep 2007
Posts: 6
|
09-03-2007 06:43
Not really - you can _pretend_ that the avatar is speaking, but chat output from an object is always marked in a different color, thus revealing its origin. If you name an object identical to the avatar (there is a function llSetObjectName for it, you "just" have to find the av's name), then any llSay output from that object will pretend it stes from that avatar, as the name is set in front of the output. But, as I said: it will be marked in different color (usually green).
|
|
Markino Oh
Registered User
Join date: 3 Sep 2007
Posts: 4
|
09-03-2007 07:01
yes... its a workaround that I have already thought. Its too limited... not for the color but for the name. I didn't know llSetObjectName to can change the name at runtime.... I will try and i will say you my feedback.
Thx, M.
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
09-03-2007 08:20
From: Markino Oh yes... its a workaround that I have already thought. Its too limited... not for the color but for the name. I didn't know llSetObjectName to can change the name at runtime.... I will try and i will say you my feedback.
Thx, M. You'll need to use either a touch, collision, or sensor (most likely sensor or touch in your case) to detect the avatar, then use llDetectedName() to set the object name with llSetObjectName()
|
|
Markino Oh
Registered User
Join date: 3 Sep 2007
Posts: 4
|
09-03-2007 08:25
From: Johan Laurasia You'll need to use either a touch, collision, or sensor (most likely sensor or touch in your case) to detect the avatar, then use llDetectedName() to set the object name with llSetObjectName() For my case It will be enough "llSetObjectName(llKey2Name(llGetOwner()));" on start event, but thx. M.
|
|
Cathy Niekerk
Registered User
Join date: 3 Sep 2007
Posts: 6
|
Don't forget to reset the name....
09-04-2007 02:25
Just a further hint: I'd suggest to save the original object name by llGetObjectName, set the object name to the AV name and revert it afterwards - otherwise the object will be named <avatar name> in the inventory on detach 
|
|
Markino Oh
Registered User
Join date: 3 Sep 2007
Posts: 4
|
09-04-2007 02:39
From: Cathy Niekerk Just a further hint: I'd suggest to save the original object name by llGetObjectName, set the object name to the AV name and revert it afterwards - otherwise the object will be named <avatar name> in the inventory on detach  yes, i did after first test i uderstood  ...and it was necessary use attach event... using start event not always can work well. thx you to all.
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
09-05-2007 03:48
From: Markino Oh Is possible to make speak an avatar using a script? Yes. When a user clicks a button on a menu generated with llDialog, their avatar speaks the text on the button (which cannot exceed 24 characters) in the specified channel (which can be 0). lslwiki.net/lslwiki/wakka.php?wakka=llDialog
|