I would like to understand how to intercept chatting top show an object in fron of you (for example a sheet of paper) which disappears as avatar stops moving the hands...
Thank you in advance
These forums are CLOSED. Please visit the new forums HERE
How to show an object while chatting? |
|
|
Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
|
02-05-2007 05:52
I would like to understand how to intercept chatting top show an object in fron of you (for example a sheet of paper) which disappears as avatar stops moving the hands...
Thank you in advance |
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
02-05-2007 07:09
The command to detect if an Avatar is doing something is llGetAgentInfo
You can find more about it here: http://rpgstats.com/wiki/index.php?title=LlGetAgentInfo |
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
02-05-2007 10:33
I recently needed to deal with this . . . the following thread might be helpful, especially if you need a different animation to happen as the avatar is typing/chatting.
/54/a2/163421/1.html |
|
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
|
Typing override
02-05-2007 12:48
Eadoin;
I have also been working on a typing override for myself (writing with a pen on a piece of paper) and have mostly got it working. I adapted the following open source script for this purpose: http://www.lovelymachine.com/Dolmere/2006/09/keyboard_override_typing_anima.html You need to supply your own animation to hold the paper in front of you, to replace the one referenced in the script: "Dol-HoldingCards" I found that this script needed a few lines added to properly set the alpha - I can post them later but I don't have them on my computer at work. If you'd like to see the animation I've designed, I could demo it in SL sometime. Load the completed script into the paper object along with your animation and wear the paper on your hand. The paper will appear every time you chat. Now, I'm trying to figure out how to get the paper object to talk to a pen object, so that they both will become visible together. I don't want to have 2 separate AOs operating at the same time. I have decided that llListen() is the way to go - using this to trigger the pen alpha setting. Can anyone tell me whether a Listen event is generated when typing starts, or after the operator hits the Enter key? Galena Qi - newbie scripter |
|
Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
|
02-06-2007 13:34
Very interesting project... I am really new to LSL, so I do not think I am still able to help you, but if you need at least support to design the sheet of paper or the pen, I am quite good in 2D painting.
|