Detect Typing

Written by Kitsune
//Detect Typing Example
//by Hank Ramos
//Shows how to detect whether or not the owner of the script is currently typing.
//Useful for "keyboard" attachments and other things.
 
default
{
    state_entry()
    {
        llSetTimerEvent(1);
    }
 
    timer()
    {
        if (llGetAgentInfo(llGetOwner()) & AGENT_TYPING)
        {
            llOwnerSay("You are typing...");
        }
    }
}