Jump to content

Newbie scripter question - script detection of IMs?


Ancilla3704
 Share

You are about to reply to a thread that has been inactive for 400 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi all, 

I'm still just learning to script so please forgive me if this is obvious. :)  It's difficult to search, because usually people abbreviate to "IM" which is too short and too common a sequence to search effectively.

Is there a way that a script can detect when the avatar wearing the scripted object sends an IM to a group or to another avatar?  

Note - I don't want the script to actually *read* it or store it or interfere with it. Just say "hey, one was sent" and then trigger unrelated things.

I know from the existence of RLV that you can *prevent* sending an IM, or allow it only to certain people, but I don't want to prevent it or interfere with it, only to note it and take another action. The only reference to IMs I seem to be able to find in the lsl wiki is for llInstantMesssage, which doesn't seem to be what I"m looking for. 

Also: if this IS possible, can it differentiate between IMs made to other avatars directly and those to groups? 

Thanks!

 

Link to comment
Share on other sites

It seems to be a policy decision that scripts cannot listen to SL's instant messages.

llGetAgentInfo can be used to tell when an avatar is typing. Test for the AGENT_TYPING bit. But you can't tell whether they're sending an IM or typing in chat.

(I wish you could tell. Then you could have a cell phone attachment which comes out only when the user is sending an IM, to show their attention is elsewhere. Like RL.)

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 400 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...