Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I want my ears to move when I type

Monalisa Robbiani
Registered User
Join date: 9 Jul 2007
Posts: 861
08-07-2007 02:32
Hiya

I don't know anything about scripting. Please maybe someone knows how to make this possible: Everytime I type I want my ears to flip backwards, like some of the newer avs do. The commands are /1 eb (ears back) and /1 ef (ears front). They control some alphachannel to hide/unhide parts of the ear. I probably need to put some additional script into the ears to make it work or wear another attachment with some script in it. Any idea? Unfortunately the Luskwood ear script itself (inside the ears) is no mod (ears are mod though). Thanks.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
08-07-2007 06:30
Sounds like a tough one to help with because the script is almost certainly listening for the *owner*--not some other script--to chat the command on channel 1. If one had the ears in hand (as it were ;)), one could experiment with llSetLinkAlpha() to figure out which link numbers corresponded to which forward/backward parts. Once one knew that, it should be pretty simple to make a basic AO-like script that swapped the relevant link alphas whenever llGetAgentInfo() has the AGENT_TYPING bit set. So, if a scripter has the ears, it's easy, but otherwise, not sure how to help.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
08-07-2007 07:47
I've recently created animated ear scripts, and will be putting them up for sale soon, but int he meantime, if you want to write your own, it is a matter of detecting when the avatar is typing and either changing alpha on multiple ear prims, or rotating the ears themselves.

You detect typing with a relatively short timer() event, and calls to llGetAgentInfo(), checking to see if the AGENT_TYPING flag is set or not.
Monalisa Robbiani
Registered User
Join date: 9 Jul 2007
Posts: 861
08-07-2007 22:13
I know which parts react to the commands, and I know the commands themselves. But I cannot open or change the script that controls these commands. It's possible though to add additional scripts into each affected prim.

AGENT_TYPING sounds interesting. Unfortunately I have no clue how to implement it into any script/Attachment/Prim or whatever. I will wait for you product to be ready and buy it :)