Jump to content

Single avatar detection


Zara Avindar
 Share

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

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

Recommended Posts

Hi everyone, thank you in advance for your input.

I have a tip jar that I scripted, but when the DJ or Hostess leaves the club without logging out of it, they remain logged on until I reset the script. Is there a way to detect when the avatar that's logged into it has left the parcel without using something like the Agent function that keeps scanning for all the avatars on the parcel or region? It seems like such a waste of memory to keep doing that if I already know who the avatar is and just want to keep track of that one remaining on the parcel. It's probably something simple that I'm overlooking, but your input is appreciated. :)

Link to comment
Share on other sites

Start a timer that  triggers every minute or so ( it doesn't really need  to check any more often than that, probably)  and have it check
 

if (llGetAgentSize (person_of_interest) == ZERO_VECTOR)
{
    // person_of_interest is no longer in the region, so kill the script or whatever
}

 

  • Like 1
Link to comment
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...