Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Check away status

Yarl Schism
Registered User
Join date: 19 Jun 2008
Posts: 1
09-14-2008 16:08
Hi everyone, I tried to search for this, but "away" is too common of a word for the forum's search engine.

How do you check/listen for whether or not a sitting avatar is away? I'd like to make a script that will unsit an avatar if it ever takes an Away or Busy status, but I couldn't find an event that would read that information. Any help available for me?

Thanks in advance!
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
09-14-2008 16:21
Look for llGetAgentInfo() in a wiki.

if (llGetAgentInfo(av_key) & AGENT_AWAY)
{
// Agent is away...
}